diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/for1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/for1.C | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/for1.C b/gcc/testsuite/g++.old-deja/g++.other/for1.C deleted file mode 100644 index 31cd741a366..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.other/for1.C +++ /dev/null @@ -1,41 +0,0 @@ -// Build don't link: - -int i; -int j; - -struct S { - int operator()(int) - { - i = 1; - } - - typedef int I; - - void f() { - for (S I; false; ) - ; - int k = I(3); - } -}; - -typedef int J; - -struct T { - int operator()(int) - { - j = 1; - } - - void f() { - for (T J; false; ) - ; - int k = J(3); - } -}; - -int main() -{ - S s; - s.f(); - return 2 * i + j; -} |