mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Check that pure/const functions are marked nounwind.
llvm-svn: 70875
This commit is contained in:
parent
84cf4d62a8
commit
b77e5b9e2e
8
test/FrontendC++/2009-05-04-PureConstNounwind.cpp
Normal file
8
test/FrontendC++/2009-05-04-PureConstNounwind.cpp
Normal file
@ -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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user