Sign in
llvm
/
clang
/
c44757105021d1429f9430d5ff0da45b02b9f741
/
.
/
test
/
CodeGenCXX
/
cxx11-noreturn.cpp
blob: 527a8ae19a0d05c63c42f8c2a19aa13b3b7d1b66 [
file
]
// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -std=c++11 %s -o - | FileCheck %s
int
g
();
// CHECK: _Z1fv(){{.*}} [[NR:#[0-9]+]]
[[
noreturn
]]
int
f
()
{
while
(
g
())
{}
}
// CHECK: attributes [[NR]] = { noreturn nounwind{{.*}} }