summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/anon3.C
blob: 2523e0a7dd5f75f64a58077c5421c58df694e28d (plain)
1
2
3
4
5
6
7
8
9
10
11
// Test that anonymous unions work with explicit scope.

static union
{
  int i;
};

int main()
{
  return ::i;
}