summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/debug-info-method-nodebug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/debug-info-method-nodebug.cpp')
-rw-r--r--test/CodeGenCXX/debug-info-method-nodebug.cpp12
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 0000000..474053a
--- /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"
OpenPOWER on IntegriCloud