1 // Test the warn-stack-size function attribute is not generated when -Wframe-larger-than is ignored
4 // RUN: %clang_cc1 -fwarn-stack-size=70 -emit-llvm -o - %s | FileCheck %s
5 // CHECK: "warn-stack-size"="70"
7 // RUN: %clang_cc1 -DIGNORED -fwarn-stack-size=70 -emit-llvm -o - %s | FileCheck %s --check-prefix=IGNORED
8 // IGNORED-NOT: "warn-stack-size"="70"
10 extern void doIt(char *);
13 #pragma GCC diagnostic push
14 #pragma GCC diagnostic ignored "-Wframe-larger-than"
17 void frameSizeAttr() {
23 #pragma GCC diagnostic pop