1 // RUN: %clang_cc1 -std=c++11 -triple armv7-unknown-linux-gnueabi -fsyntax-only -verify %s
4 int __attribute__((no_caller_saved_registers
)) b
; // expected-warning {{unknown attribute 'no_caller_saved_registers' ignored}}
5 static void foo(int *a
) __attribute__((no_caller_saved_registers
)) {} // expected-warning {{unknown attribute 'no_caller_saved_registers' ignored}}
8 struct a test
__attribute__((no_caller_saved_registers
)); // expected-warning {{unknown attribute 'no_caller_saved_registers' ignored}}
10 __attribute__((no_caller_saved_registers(999))) void bar(int *) {} // expected-warning {{unknown attribute 'no_caller_saved_registers' ignored}}
12 __attribute__((no_caller_saved_registers
)) void foo(int *){} // expected-warning {{unknown attribute 'no_caller_saved_registers' ignored}}
14 [[gnu::no_caller_saved_registers
]] void foo2(int *) {} // expected-warning {{unknown attribute 'no_caller_saved_registers' ignored}}
16 typedef __attribute__((no_caller_saved_registers
)) void (*foo3
)(int *); // expected-warning {{unknown attribute 'no_caller_saved_registers' ignored}}
18 typedef void (*foo5
)(int *);
20 int (*foo4
)(double a
, __attribute__((no_caller_saved_registers
)) float b
); // expected-warning {{unknown attribute 'no_caller_saved_registers' ignored}}
22 int main(int argc
, char **argv
) {
23 void (*fp
)(int *) = foo
;
27 foo5
__attribute__((no_caller_saved_registers
)) func2
= foo2
; // expected-warning {{unknown attribute 'no_caller_saved_registers' ignored}}