1
0
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:
Duncan Sands 2009-05-04 16:47:11 +00:00
parent 84cf4d62a8
commit b77e5b9e2e

View 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();
}