forked from OSchip/llvm-project
Check that pure/const functions are marked nounwind.
llvm-svn: 70875
This commit is contained in:
parent
49a844e1a6
commit
b88227ef4c
|
@ -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