debug-info-method-nodebug.cpp 247 B

123456789101112
  1. // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
  2. class C {
  3. void present();
  4. void absent() __attribute__((nodebug));
  5. };
  6. C c;
  7. // CHECK-NOT: name: "absent"
  8. // CHECK: name: "present"
  9. // CHECK-NOT: name: "absent"