diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Sema/transparent-union.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/transparent-union.c b/test/Sema/transparent-union.c index d13b4045a9..a825ed8a2e 100644 --- a/test/Sema/transparent-union.c +++ b/test/Sema/transparent-union.c @@ -2,6 +2,7 @@ typedef union { int *ip; float *fp; + long *__restrict rlp; } TU __attribute__((transparent_union)); void f(TU); // expected-note{{passing argument to parameter here}} @@ -26,6 +27,9 @@ void fip(int *i) {} void ffp(TU); void ffp(float *f) {} +void flp(TU); +void flp(long *l) {} + void fvp(TU); // expected-note{{previous declaration is here}} void fvp(void *p) {} // expected-error{{conflicting types}} |