[flang] Fix crash in HLFIR generation (#118399)
[llvm-project.git] / clang / test / Sema / attr-function-return-unsupported-target.c
blobe00eecc50ad986aea4024331f59be99c50adbfee
1 // RUN: %clang_cc1 -triple s390x-linux-gnu -fsyntax-only -verify %s
3 // expected-warning@+1 {{unknown attribute 'function_return' ignored}}
4 __attribute__((function_return("keep"))) void x(void) {}
6 // expected-warning@+1 {{unknown attribute 'function_return' ignored}}
7 __attribute__((function_return("thunk"))) void y(void) {}
9 // expected-warning@+1 {{unknown attribute 'function_return' ignored}}
10 __attribute__((function_return("thunk-inline"))) void z(void) {}
12 // expected-warning@+1 {{unknown attribute 'function_return' ignored}}
13 __attribute__((function_return("thunk-extern"))) void w(void) {}
15 // expected-warning@+1 {{unknown attribute 'function_return' ignored}}
16 __attribute__((function_return("invalid"))) void v(void) {}