diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/static-mem4.C')
-rwxr-xr-x | gcc/testsuite/g++.old-deja/g++.law/static-mem4.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/static-mem4.C b/gcc/testsuite/g++.old-deja/g++.law/static-mem4.C new file mode 100755 index 0000000..09e1637 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.law/static-mem4.C @@ -0,0 +1,13 @@ +// Build don't link: +// GROUPS passed static-mem +struct test { + void test_member() { + static test& ds = *this; // FIX: static test* ds = this; + } +}; + + +int main() +{ + test t; +} |