summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/builtin-expect.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/builtin-expect.c')
-rw-r--r--test/CodeGen/builtin-expect.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/CodeGen/builtin-expect.c b/test/CodeGen/builtin-expect.c
index 8f02c4d..88479d9 100644
--- a/test/CodeGen/builtin-expect.c
+++ b/test/CodeGen/builtin-expect.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
int x;
int y(void);
@@ -9,3 +9,13 @@ void FUNC() {
foo ();
}
+// rdar://9330105
+void isigprocmask(void);
+long bar();
+
+int main() {
+ (void) __builtin_expect((isigprocmask(), 0), bar());
+}
+
+// CHECK: call void @isigprocmask()
+// CHECK: [[C:%.*]] = call i64 (...)* @bar()
OpenPOWER on IntegriCloud