aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/parse10.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/parse10.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/parse10.C16
1 files changed, 1 insertions, 15 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/parse10.C b/gcc/testsuite/g++.old-deja/g++.jason/parse10.C
index 477f7f53a63..29b55ae70ac 100644
--- a/gcc/testsuite/g++.old-deja/g++.jason/parse10.C
+++ b/gcc/testsuite/g++.old-deja/g++.jason/parse10.C
@@ -1,15 +1 @@
-// Testcase for precedence of ?: wrt =
-
-extern "C" int printf (const char *, ...);
-
-main()
-{
- int j = 0, k = 0;
- 1 ? j : k = 5; // should be parsed 1 ? j : (k = 5)
- (void) (1 ? k = 5 : 0);
- k = 5 ? 1 : 0; // should be parsed k = (5 ? 1 : 0)
-
- printf ("%d %d\n", j, k);
-
- return j == 5 || k == 5;
-}
+int main()