diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2011-05-02 19:39:53 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2011-05-02 19:39:53 +0000 |
commit | 01af97d3b23bded2b2b21af19bbc6e4cce49e5b3 (patch) | |
tree | 64a10f4c4154739d4a8191d7e1b52ce497f4ebd6 /test/CodeGen/builtin-expect.c | |
parent | c3b054d250cdca485c71845089c316e10610ebad (diff) |
Diffstat (limited to 'test/CodeGen/builtin-expect.c')
-rw-r--r-- | test/CodeGen/builtin-expect.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/CodeGen/builtin-expect.c b/test/CodeGen/builtin-expect.c index 8f02c4da78a4e..88479d90a0926 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() |