Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 %s -std=c++11 -emit-llvm-only
      2 // CHECK that we don't crash.
      3 
      4 // PR11676's example is ill-formed:
      5 /*
      6 union _XEvent {
      7 };
      8 void ProcessEvent() {
      9   _XEvent pluginEvent = _XEvent();
     10 }
     11 */
     12 
     13 // Example from PR11665:
     14 void f() {
     15   union U { int field; } u = U();
     16   (void)U().field;
     17 }
     18