diff options
author | Paul Robinson <paul_robinson@playstation.sony.com> | 2015-06-25 17:50:43 +0000 |
---|---|---|
committer | Paul Robinson <paul_robinson@playstation.sony.com> | 2015-06-25 17:50:43 +0000 |
commit | a288f22e28971ce3e0c5606d18fd7499aa17ee8a (patch) | |
tree | 0ac090b1ba4b2b1484475c28103ddb11c4dd7567 /test/CodeGenCXX/debug-info-method-nodebug.cpp | |
parent | c3a9c7abb16ea92449bb1c068aa1c6df5210e3cc (diff) |
Omit 'nodebug' methods from the class description.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-method-nodebug.cpp')
-rw-r--r-- | test/CodeGenCXX/debug-info-method-nodebug.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-method-nodebug.cpp b/test/CodeGenCXX/debug-info-method-nodebug.cpp new file mode 100644 index 0000000000..474053a4ca --- /dev/null +++ b/test/CodeGenCXX/debug-info-method-nodebug.cpp @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -emit-llvm -g %s -o - | FileCheck %s + +class C { + void present(); + void absent() __attribute__((nodebug)); +}; + +C c; + +// CHECK-NOT: name: "absent" +// CHECK: name: "present" +// CHECK-NOT: name: "absent" |