Index: test/CodeGen/attr-nodebug.c =================================================================== --- test/CodeGen/attr-nodebug.c +++ test/CodeGen/attr-nodebug.c @@ -1,5 +1,4 @@ -// RUN: %clang_cc1 -g -emit-llvm -o %t %s -// RUN: not grep 'call void @llvm.dbg.func.start' %t +// RUN: %clang_cc1 -g -emit-llvm -o - %s | FileCheck %s void t1() __attribute__((nodebug)); @@ -10,3 +9,10 @@ a++; } +// IR should have no llvm.dbg.* calls, or !dbg annotations. +// CHECK-LABEL: @t1 +// CHECK-NOT: dbg +// CHECK: } + +// And no function description for debug info. +// CHECK-NOT: DISubprogram