You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
302 B

// REQUIRES: x86-registered-target
// RUN: %clang_cc1 -x c++ %s -triple i386-apple-darwin10 -std=c++11 -fasm-blocks -verify
class A {
public:
void foo(int a) {}
void foo(float a) {}
};
void t_fail() {
__asm {
mov ecx, [eax]A.foo // expected-error {{Unable to lookup field reference!}}
}
}