diff options
author | Anders Carlsson <andersca@mac.com> | 2009-02-13 08:11:52 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-02-13 08:11:52 +0000 |
commit | e896d98548b02223c7740d807a0aa6e20fba7079 (patch) | |
tree | 3cd6ed57b2f97b2dea47294eeef95ae68dbde28f /test/CodeGen/attr-nodebug.c | |
parent | d87df37e0adaba0d5e33da7b1a14d7f1d94c5eef (diff) |
Add CodeGen support for the nodebug attribute.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64445 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/attr-nodebug.c')
-rw-r--r-- | test/CodeGen/attr-nodebug.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/attr-nodebug.c b/test/CodeGen/attr-nodebug.c new file mode 100644 index 0000000000..c9778c47f2 --- /dev/null +++ b/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++; +} + |