// RUN: %clang_cc1 -O2 -emit-llvm -fms-extensions -o - %s | FileCheck %s
// CHECK: define{{.*}} void @f0(){{.*}} #[[OPTNONE:[0-9]+]]
void
// CHECK: define{{.*}} void @f1(){{.*}} #[[OPTNONE]]
void
// CHECK: define{{.*}} void @f2(){{.*}} #[[NO_OPTNONE:[0-9]+]]
void
// CHECK: define{{.*}} void @f3(){{.*}} #[[NO_OPTNONE]]
void
// CHECK: attributes #[[OPTNONE]] = {{{.*}}optnone{{.*}}}
// CHECK-NOT: attributes #[[NO_OPTNONE]] = {{{.*}}optnone{{.*}}}