2021-06-28 16:13:02 +08:00
|
|
|
// 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
|
2019-10-27 08:15:10 +08:00
|
|
|
|
|
|
|
// Test that the -fconvergent-functions flag works
|
|
|
|
|
2021-06-28 16:13:02 +08:00
|
|
|
// CHECK: attributes #0 = {
|
2019-10-27 08:15:10 +08:00
|
|
|
// NOCONVFUNC-NOT: convergent
|
2021-06-28 16:13:02 +08:00
|
|
|
// CONVFUNC-SAME: convergent
|
|
|
|
// CHECK-SAME: }
|
2019-10-27 08:15:10 +08:00
|
|
|
void func() { }
|