Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.law/code-gen1.C

raw
1 // { dg-do run }
2 // GROUPS passed code-generation
3 // code-gen file
4 // From: Jeffrey C. Gealow <[email protected]>
5 // Date: Sun, 4 Jul 93 18:57:53 -0400
6 // Subject: increment bug (0 + 1 + 1 = 3)
7 // Message-ID: <[email protected]>
8
9 #include <stdio.h>
10
11 int main()
12 {
13 int i = 0;
14 (++i)++;
15 if (i == 2)
16 printf ("PASS\n");
17 else
18 { printf ("FAIL\n"); return 1; }
19 }
20
21