summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ms-inline-asm-errors.cpp
blob: 6484743e1f7ae02eb2ec8ff10592e31e09cba839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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!}}
	}
}