[ORC] Fail materialization in tasks that are destroyed before running.
[llvm-project.git] / clang / test / CXX / class.derived / class.member.lookup / gh22413.cpp
blob19fb11783544e52767e5278a06a18a7289d4df6c
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 struct A {
4 void operator()(int); // expected-note {{member found by ambiguous name lookup}}
5 void f(int); // expected-note {{member found by ambiguous name lookup}}
6 };
7 struct B {
8 void operator()(); // expected-note {{member found by ambiguous name lookup}}
9 void f() {} // expected-note {{member found by ambiguous name lookup}}
12 struct C : A, B {};
14 int f() {
15 C c;
16 c(); // expected-error {{member 'operator()' found in multiple base classes of different types}}
17 c.f(10); //expected-error {{member 'f' found in multiple base classes of different types}}
18 return 0;