Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / g++.dg / diagnostic / pr79304.C
blobeedae42cbdf16b95709b05b4b18882a2fc24e513
1 // PR c++/79304
2 // { dg-do compile }
4 struct C { };
6 template<class T>
7 struct X
9   C* c;
11   void f() {
12     this->c.s();        // { dg-error "->c" }
13   }
16 int main()
18   X<int> x;
19   x.f();