1 // RUN: %clang_cc1 -O2 -emit-llvm -fms-extensions -o - %s | FileCheck %s
3 #pragma optimize("", off)
5 // CHECK: define{{.*}} void @f0(){{.*}} #[[OPTNONE:[0-9]+]]
8 // CHECK: define{{.*}} void @f1(){{.*}} #[[OPTNONE]]
11 #pragma optimize("", on)
13 // CHECK: define{{.*}} void @f2(){{.*}} #[[NO_OPTNONE:[0-9]+]]
16 // CHECK: define{{.*}} void @f3(){{.*}} #[[NO_OPTNONE]]
19 // CHECK: attributes #[[OPTNONE]] = {{{.*}}optnone{{.*}}}
20 // CHECK-NOT: attributes #[[NO_OPTNONE]] = {{{.*}}optnone{{.*}}}