summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/builtin-unreachable-1.C
blob: f6a5577032eb6dbf076672b09c5b80318f7c925f (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/40445
// Check that a function containing only __builtin_unreachable()
// doesn't ICE.

// { dg-do compile }
// { dg-options "-O0" }
const char *
f (void)
{
  __builtin_unreachable ();
}