1 // RUN: %clang_cc1 %s -verify -fsyntax-only -triple arm-none-linux
9 void __attribute__((naked
)) Foo::bar() { // expected-note{{attribute is here}}
10 asm("mov r2, %0" : : "r"(v
)); // expected-error{{'this' pointer references not allowed in naked functions}}
13 void __attribute__((naked
)) Foo::bar2() {
14 asm("mov r2, %0" : : "r"(s
)); // static member reference is OK