2011-08-16 02:48:14 +04:00
|
|
|
// RUN: %clang_cc1 -fexceptions -emit-llvm %s -o - | FileCheck %s
|
2011-08-16 02:38:22 +04:00
|
|
|
int c(void) __attribute__((const));
|
|
|
|
int p(void) __attribute__((pure));
|
|
|
|
int t(void);
|
|
|
|
|
2011-08-16 02:48:14 +04:00
|
|
|
// CHECK: define i32 @_Z1fv() {
|
2011-08-16 02:38:22 +04:00
|
|
|
int f(void) {
|
2011-08-16 02:48:14 +04:00
|
|
|
// CHECK: call i32 @_Z1cv() nounwind readnone
|
|
|
|
// CHECK: call i32 @_Z1pv() nounwind readonly
|
2011-08-16 02:38:22 +04:00
|
|
|
return c() + p() + t();
|
|
|
|
}
|
2011-08-16 02:48:14 +04:00
|
|
|
|
|
|
|
// CHECK: declare i32 @_Z1cv() nounwind readnone
|
|
|
|
// CHECK: declare i32 @_Z1pv() nounwind readonly
|
|
|
|
// CHECK-NOT: declare i32 @_Z1tv() nounwind
|