[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / 2008-04-08-NoExceptions.c
blob9388efb825a10d69557f544af4c2cee7b6a0742c
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
3 void f(void);
4 void g(void) {
5 // CHECK: define{{.*}} void @g() [[NUW:#[0-9]+]]
6 // CHECK-NOT: call void @f() nounwind
7 f();
10 // CHECK-NOT: declare void @f() [[NUW]]
12 // CHECK: attributes [[NUW]] = { noinline nounwind{{.*}} }