summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/convergent-functions.cpp
blob: 7ddb8d3f9450160a431079f4bb56388bdf95b368 (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -fconvergent-functions -o - < %s | FileCheck -check-prefix=CONVFUNC %s
// RUN: %clang_cc1 -triple i386-pc-win32 -emit-llvm -o - < %s | FileCheck -check-prefix=NOCONVFUNC %s

// Test that the -fconvergent-functions flag works

// CONVFUNC: attributes #0 = { convergent {{.*}} }
// NOCONVFUNC-NOT: convergent
void func() { }
OpenPOWER on IntegriCloud