xref: /llvm-project/clang/test/CodeGenCXX/debug-info-method-nodebug.cpp (revision 3459ce2e5ebbabb8d4dde3809da50dc89e1b0b35)
1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
2 
3 class C {
4   void present();
5   void absent() __attribute__((nodebug));
6 };
7 
8 C c;
9 
10 // CHECK-NOT: name: "absent"
11 // CHECK:     name: "present"
12 // CHECK-NOT: name: "absent"
13