Fix the clang-wpa example.
[clang.git] / test / CodeGenCXX / member-init-union.cpp
blob2c50e18b6ffa8f80ad87e55e81b6ba178f22d459
1 // RUN: %clang_cc1 %s -emit-llvm-only -verify
3 union x {
4 int a;
5 float b;
6 x(float y) : b(y) {}
7 x(int y) : a(y) {}
8 };
9 x a(1), b(1.0f);