Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.law/operators30.C

raw
1 // { dg-do run }
2 // GROUPS passed operators
3 // opr-mm file
4 // Date: Thu, 2 Jun 94 10:00:29 +0200
5 // From: [email protected] (Stephane Chatty)
6 // Message-Id: <[email protected]>
7 // Subject: result of operator -- with g++-2.5.8
8
9 #include <stdio.h>
10
11 void nop()
12 {
13 }
14
15 int main ()
16 {
17 int a = 2;
18
19 if (----a == 0)
20 nop ();
21
22 if (a == 0)
23 printf("PASS\n");
24 else
25 { printf("FAIL\n"); return 1; }
26 }