Debian Codegraph @

gcc/testsuite/g++.target/aarch64/lane-bound-1.C

raw
1 // { dg-do compile }
2 // { dg-options "" }
3 #include <arm_neon.h>
4
5 // vgetq_lane_u64 should not cause any
6 // exceptions to thrown so even at -O0
7 // removeme should have been removed.
8 void removeme()
9 __attribute__((error("nothrow")));
10 int _setjmp();
11 void hh(uint64x2_t c, int __b)
12 {
13 try {
14 vgetq_lane_u64(c, __b);
15 // { dg-error "must be a constant immediate" "" { target *-*-* } 0 }
16 } catch (...)
17 {
18 removeme(); // { dg-bogus "declared with attribute error" }
19 }
20 }
21