Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.old-deja / g++.other / expr1.C
blob87166f0ae2de1dd28789b698ef85806c60fbc832
1 // { dg-do assemble  }
3 // Simplified from bug report by Trevor Taylor <ttaylor@powerup.com.au>
5 struct T {                      // { dg-message "candidate" }
6   int operator()(int) { } // { dg-message "operator|candidate expects" }
7 };
9 int main() {
10   T()(); // { dg-error "match" } no such operator