11 lines · cpp
1// RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -fconvergent-functions -o - < %s | FileCheck -check-prefixes=CHECK,CONVFUNC %s2// RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -o - < %s | FileCheck -check-prefixes=CHECK,NOCONVFUNC %s3 4// Test that the -fconvergent-functions flag works5 6// CHECK: attributes #0 = {7// NOCONVFUNC-NOT: convergent8// CONVFUNC-SAME: convergent9// CHECK-SAME: }10void func(void) { }11