summaryrefslogtreecommitdiffstats
path: root/test/Sema/transparent-union.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/transparent-union.c')
-rw-r--r--test/Sema/transparent-union.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Sema/transparent-union.c b/test/Sema/transparent-union.c
index cdfc850..27d5c24 100644
--- a/test/Sema/transparent-union.c
+++ b/test/Sema/transparent-union.c
@@ -38,3 +38,10 @@ typedef union {
} TU3 __attribute__((transparent_union));
typedef union { } TU4 __attribute__((transparent_union)); // expected-warning{{field}}
+
+typedef int int4 __attribute__((ext_vector_type(4)));
+typedef union {
+ int4 vec; // expected-warning{{first field of a transparent union cannot have vector type 'int4'; transparent_union attribute ignored}}
+} TU5 __attribute__((transparent_union));
+
+
OpenPOWER on IntegriCloud