diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/lookup3.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/lookup3.C | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/lookup3.C b/gcc/testsuite/g++.old-deja/g++.other/lookup3.C new file mode 100644 index 000000000..a2946b7b0 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/lookup3.C @@ -0,0 +1,18 @@ +// { dg-do run } +// Test to make sure that the use of __typeof__ in WIFEXITED works. + +int main () +{ + int stat_loc = 0; + (__extension__ + ({ + union + { + __typeof__ (stat_loc) __in; + int __i; + } __u; + __u.__in = (stat_loc); + __u.__i; + }) + ); +} |