blob: 9566df4a20ff9223a5a316104af5e9c96f4bb20e [file] [log] [blame]
Eli Friedman16c53782009-12-04 07:18:51 +00001// RUN: clang-cc %s -fsyntax-only -verify
2// PR5543
3
4struct A { int x; union { int* y; float& z; }; }; struct B : A {int a;};
5int* a(B* x) { return x->y; }
6
7struct x { union { int y; }; }; x y; template <int X> int f() { return X+y.y; }
8int g() { return f<2>(); }
9