summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/empty2.C
blob: 86caa5ccb0f182a6f0ab8dd0c2832487dd3ed7a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/46160
// { dg-do compile }

struct S
{
  enum E { A };
} s;
volatile S t;

void f (S::E);

void
g ()
{
  volatile S *p = &s;
  f (p->A);
  f (t.A);
}