Revert "Reapply "[llvm-jitlink] Use concurrent linking by default." with fixes. ...
[llvm-project.git] / clang / test / CodeGen / disable-tail-calls.c
blobe53c065072a467c02c4fcda202a5c7f64ad89e3c
1 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.9.0 -emit-llvm -O2 -fno-optimize-sibling-calls -o - < %s | FileCheck %s
3 typedef struct List {
4 struct List *next;
5 int data;
6 } List;
8 // CHECK-LABEL: define{{.*}} ptr @find(
9 List *find(List *head, int data) {
10 if (!head)
11 return 0;
12 if (head->data == data)
13 return head;
14 // CHECK: call ptr @find(
15 return find(head->next, data);