OSDN Git Service

cfcd3124d8fc700e7b4744bd0548b81e55f2f56f
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / treelang / compile / var_defs-2.tree
1 // { dg-do compile }
2 external_definition int first_nonzero (int arg5, int arg6);
3
4 first_nonzero
5 {
6   automatic int y;
7   automatic int y;  // { dg-error "Duplicate" }
8   if (arg5)
9     {
10       return arg5;
11     }
12   else
13     {
14       automatic int j;
15       j = arg6;
16       return j;
17     }
18   return arg6;
19 }
20