diff options
Diffstat (limited to 'test/Sema/cast-to-union.c')
-rw-r--r-- | test/Sema/cast-to-union.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/cast-to-union.c b/test/Sema/cast-to-union.c index 6856c17..6f275e8 100644 --- a/test/Sema/cast-to-union.c +++ b/test/Sema/cast-to-union.c @@ -10,7 +10,7 @@ void test(int x) { union u w = (union u)2; // expected-warning {{C99 forbids casts to union type}} union u ww = (union u)1.0; // expected-error{{cast to union type from type 'double' not present in union}} -union u x = 7; // expected-error{{incompatible type initializing 'int', expected 'union u'}} +union u x = 7; // expected-error{{initializing 'union u' with an expression of incompatible type 'int'}} int i; union u zz = (union u)i; // expected-error{{initializer element is not a compile-time constant}} expected-warning {{C99 forbids casts to union type}} |