summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/lookup3.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/lookup3.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.other/lookup3.C17
1 files changed, 17 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 100755
index 0000000..347be4e
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/lookup3.C
@@ -0,0 +1,17 @@
+// 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;
+ })
+ );
+}