[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / convergent-functions.cpp
blob7290c505ec6fe2a809733a38ab082d7684850b1b
1 // RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -fconvergent-functions -o - < %s | FileCheck -check-prefixes=CHECK,CONVFUNC %s
2 // RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -o - < %s | FileCheck -check-prefixes=CHECK,NOCONVFUNC %s
4 // Test that the -fconvergent-functions flag works
6 // CHECK: attributes #0 = {
7 // NOCONVFUNC-NOT: convergent
8 // CONVFUNC-SAME: convergent
9 // CHECK-SAME: }
10 void func(void) { }