Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 %s -emit-llvm-only -verify |
Eli Friedman | 1db5345 | 2009-11-16 22:58:01 +0000 | [diff] [blame] | 2 | |
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); | ||||
10 |