summaryrefslogtreecommitdiff
path: root/test/FrontendC++
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-05-04 18:40:41 +0000
committerMike Stump <mrs@apple.com>2009-05-04 18:40:41 +0000
commitfe095f39e7009c51d1c86769792ccbcad8cdd2ec (patch)
treec9883b04cd8a1416361a0b29a6a91bf2417bbf3e /test/FrontendC++
parent04fa35ab13afbbc5b2f12437a256db84a27485d2 (diff)
downloadllvm-fe095f39e7009c51d1c86769792ccbcad8cdd2ec.tar.gz
llvm-fe095f39e7009c51d1c86769792ccbcad8cdd2ec.tar.bz2
llvm-fe095f39e7009c51d1c86769792ccbcad8cdd2ec.tar.xz
Restore minor deletion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC++')
-rw-r--r--test/FrontendC++/2009-05-04-PureConstNounwind.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/FrontendC++/2009-05-04-PureConstNounwind.cpp b/test/FrontendC++/2009-05-04-PureConstNounwind.cpp
new file mode 100644
index 0000000000..a4b4653e12
--- /dev/null
+++ b/test/FrontendC++/2009-05-04-PureConstNounwind.cpp
@@ -0,0 +1,8 @@
+// RUN: %llvmgxx -S -emit-llvm %s -o - | grep nounwind | count 4
+int c(void) __attribute__((const));
+int p(void) __attribute__((pure));
+int t(void);
+
+int f(void) {
+ return c() + p() + t();
+}