OSDN Git Service

PR c++/44157
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / defaulted3.C
1 // PR c++/37006
2 // { dg-options "-std=c++0x" }
3
4 template<class T>
5 struct A {
6   template<class U>
7   bool operator==(const A<U>&) = delete; // { dg-error "deleted function" }
8   operator bool () { return true; }
9 };
10
11 int main()
12 {
13   A<int> a1;
14   A<void> a2;
15   if(a1 == a2) {}               // { dg-error "used here" }
16 }