Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wunused-var-6.C
blob0fb8e5cac38f060a6243dcf57f668d7390b97d53
1 // { dg-do compile }
2 // { dg-options "-Wunused" }
4 template <int N>
5 int
6 f1 (void)
8   int c = ({
9     int a;
10     a = 1;
11     a; });
12   return c;
15 template <int N>
16 void
17 f2 (void)
19   int f;
20   f = 0;
21   __asm__ __volatile__ ("" : "+r" (f));
24 void
25 test ()
27   (void) f1<0> ();
28   f2<0> ();