2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / ubsan / pr81262.C
blob1b360de95ad60a983d0bcd5f73706c4d7a16a36a
1 // PR sanitizer/81262
2 // { dg-do compile }
3 // { dg-options "-O2 -fsanitize=unreachable" }
5 int
6 foo ()
8   asm goto ("" : : : : l1, l2);
9   __builtin_unreachable ();
10  l1:
11   return 1;
12  l2:
13   return 0;