File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 1- // RUN: %clang_cc1 -verify %s -triple x86_64-unknown-unknown -DTEST_x64
2- // RUN: %clang_cc1 -verify %s -triple i386-unknown-unknown -DTEST_x86
3- // RUN: %clang_cc1 -verify %s -triple riscv32-unknown-unknown -DTEST_riscv32
4- // RUN: %clang_cc1 -verify %s -triple riscv64-unknown-unknown -DTEST_riscv64
5- // RUN: %clang_cc1 -verify %s -triple aarch64-unknown-unknown -DTEST_aarch64
1+ // RUN: %clang_cc1 -verify=x86 %s -triple x86_64-unknown-unknown
2+ // RUN: %clang_cc1 -verify=x86 %s -triple i386-unknown-unknown
3+ // RUN: %clang_cc1 -verify %s -triple riscv32-unknown-unknown
4+ // RUN: %clang_cc1 -verify %s -triple riscv64-unknown-unknown
5+ // RUN: %clang_cc1 -verify %s -triple aarch64-unknown-unknown
66
7- #if defined(TEST_x64 ) || defined(TEST_x86 )
8- // expected-no-diagnostics
9- void * a () {
10- return __builtin_stack_address ();
11- }
12- #else
137void * a () {
148return __builtin_stack_address (); // expected-error {{builtin is not supported on this target}}
9+ // x86-no-diagnostics
1510}
16- #endif
You can’t perform that action at this time.
0 commit comments