freebsd-dev/test/CodeGenCXX/member-init-union.cpp

11 lines
142 B
C++
Raw Normal View History

2010-01-01 10:34:51 +00:00
// RUN: %clang_cc1 %s -emit-llvm-only -verify
2009-11-18 14:59:57 +00:00
union x {
int a;
float b;
x(float y) : b(y) {}
x(int y) : a(y) {}
};
x a(1), b(1.0f);