aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/convergent-functions.cpp
blob: 7290c505ec6fe2a809733a38ab082d7684850b1b (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -fconvergent-functions -o - < %s | FileCheck -check-prefixes=CHECK,CONVFUNC %s
// RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -o - < %s | FileCheck -check-prefixes=CHECK,NOCONVFUNC %s

// Test that the -fconvergent-functions flag works

// CHECK: attributes #0 = {
// NOCONVFUNC-NOT: convergent
// CONVFUNC-SAME: convergent
// CHECK-SAME: }
void func(void) { }