brintos

brintos / llvm-project-archived public Read only

0
0
Text · 320 B · b0dd1a8 Raw
24 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -pedantic %s2// expected-no-diagnostics3 4namespace PR12866 {5  struct bar {6    union {7      int member;8    };9  };10 11  void foo( void ) {12    (void)sizeof(bar::member);13  }14}15 16namespace PR20021 {17class C {18  union {19    static_assert(true, "");20    int i;21  };22};23}24