summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/cxx11-noreturn.cpp
blob: feea72ef3f4503df08e4eeeeb1980d0d10b640d1 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -std=c++11 %s -o - | FileCheck %s

int g();

// CHECK: _Z1fv(){{.*}} [[NR:#[0-9]+]]
[[noreturn]] int f() {
  while (g()) {}
}

// CHECK: attributes [[NR]] = { mustprogress noinline noreturn nounwind{{.*}} }