annotate clang/test/CodeGen/ms-inline-asm-errors.cpp @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // REQUIRES: x86-registered-target
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 -x c++ %s -triple i386-apple-darwin10 -std=c++11 -fasm-blocks -verify
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 class A {
anatofuz
parents:
diff changeset
5 public:
anatofuz
parents:
diff changeset
6 void foo(int a) {}
anatofuz
parents:
diff changeset
7 void foo(float a) {}
anatofuz
parents:
diff changeset
8 };
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 void t_fail() {
anatofuz
parents:
diff changeset
12 __asm {
anatofuz
parents:
diff changeset
13 mov ecx, [eax]A.foo // expected-error {{Unable to lookup field reference!}}
anatofuz
parents:
diff changeset
14 }
anatofuz
parents:
diff changeset
15 }