diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/lookup/anon3.C')
-rw-r--r-- | gcc/testsuite/g++.dg/lookup/anon3.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/lookup/anon3.C b/gcc/testsuite/g++.dg/lookup/anon3.C new file mode 100644 index 000000000..2523e0a7d --- /dev/null +++ b/gcc/testsuite/g++.dg/lookup/anon3.C @@ -0,0 +1,11 @@ +// Test that anonymous unions work with explicit scope. + +static union +{ + int i; +}; + +int main() +{ + return ::i; +} |