| commit | 63784f4e5e125b7a81c92c2cf176797ce67b2e6d | [log] [tgz] |
|---|---|---|
| author | Anders Carlsson <andersca@mac.com> | Fri Feb 13 08:11:52 2009 +0000 |
| committer | Anders Carlsson <andersca@mac.com> | Fri Feb 13 08:11:52 2009 +0000 |
| tree | f9bc53d71e0ef847ddec707277bac9eff3c7744d | |
| parent | 333db7abbd51dfd8c56bcbe3febe0abef0c31d0d [diff] [blame] |
Add CodeGen support for the nodebug attribute. llvm-svn: 64445
diff --git a/clang/test/CodeGen/attr-nodebug.c b/clang/test/CodeGen/attr-nodebug.c new file mode 100644 index 0000000..c9778c4 --- /dev/null +++ b/clang/test/CodeGen/attr-nodebug.c
@@ -0,0 +1,12 @@ +// RUN: clang -g -emit-llvm -o %t %s && +// RUN: not grep 'call void @llvm.dbg.func.start' %t + +void t1() __attribute__((nodebug)); + +void t1() +{ + int a = 10; + + a++; +} +