opnsense-src/test/CodeGenCXX/member-init-union.cpp
2009-11-18 14:59:57 +00:00

10 lines
140 B
C++

// RUN: clang-cc %s -emit-llvm-only -verify
union x {
int a;
float b;
x(float y) : b(y) {}
x(int y) : a(y) {}
};
x a(1), b(1.0f);