diff options
author | Mike Stump <mrs@apple.com> | 2009-05-04 18:40:41 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-05-04 18:40:41 +0000 |
commit | fe095f39e7009c51d1c86769792ccbcad8cdd2ec (patch) | |
tree | c9883b04cd8a1416361a0b29a6a91bf2417bbf3e /test/FrontendC++ | |
parent | 04fa35ab13afbbc5b2f12437a256db84a27485d2 (diff) | |
download | external_llvm-fe095f39e7009c51d1c86769792ccbcad8cdd2ec.zip external_llvm-fe095f39e7009c51d1c86769792ccbcad8cdd2ec.tar.gz external_llvm-fe095f39e7009c51d1c86769792ccbcad8cdd2ec.tar.bz2 |
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.cpp | 8 |
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 0000000..a4b4653 --- /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(); +} |