aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/binding.C
blob: 3321cece23a47e12743823eb3a4e8de76c065595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// Bug: g++ only looks in the current temporary binding level for a name.

struct T { ~T(); };

int main()
{
  foo:
   T t;				// { dg-message "" } redeclared
  bar:
   T t;				// { dg-error "" } redeclaration
}