aboutsummaryrefslogtreecommitdiff
path: root/configuration/bazel/builtin_unreachable.cpp
blob: 11d20cfa1744c6d5c406d454703c689bf967b547 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
int f() {
  static int x = 1;
  if (x == 1) {
    return 0;
  } else {
    __builtin_unreachable();
    // Note: the lack of return here is intentional
  }
}

int main() {
  return f();
}