[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / member-init-union.cpp
blobbe171a365b011ee739b53d0a4829c6106315312a
1 // RUN: %clang_cc1 %s -emit-llvm-only -verify
2 // expected-no-diagnostics
4 union x {
5 int a;
6 float b;
7 x(float y) : b(y) {}
8 x(int y) : a(y) {}
9 };
10 x a(1), b(1.0f);