]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/builtin-expect.c
Vendor import of clang r114020 (from the release_28 branch):
[FreeBSD/FreeBSD.git] / test / CodeGen / builtin-expect.c
1 // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
2
3 int x;
4 int y(void);
5 void foo();
6 void FUNC() {
7 // CHECK: [[call:%.*]] = call i32 @y
8   if (__builtin_expect (x, y()))
9     foo ();
10 }
11