Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/stmtexpr2.C

raw
1 // { dg-do run }
2 extern "C" void abort();
3
4 int i;
5
6 void g()
7 {
8 i++;
9 }
10
11 template <class T>
12 void f(T)
13 {
14 __extension__ ({g();});
15 }
16
17 int main()
18 {
19 f(3.0);
20 if (i != 1)
21 abort();
22
23 return 0;
24 }
25