| 1 |
// RUN: %clang_cc1 -triple x86_64 -emit-llvm -O1 -o - %s | FileCheck %s |
| 2 |
// |
| 3 |
// Verifies that the gnu_inline version is ignored in favor of the redecl |
| 4 |
|
| 5 |
extern inline __attribute__((gnu_inline)) unsigned long some_size(int c) { |
| 6 |
return 1; |
| 7 |
} |
| 8 |
unsigned long mycall(int s) { |
| 9 |
// CHECK-LABEL: i64 @mycall |
| 10 |
// CHECK: ret i64 2 |
| 11 |
return some_size(s); |
| 12 |
} |
| 13 |
unsigned long some_size(int c) { |
| 14 |
return 2; |
| 15 |
} |
| 16 |
unsigned long yourcall(int s) { |
| 17 |
// CHECK-LABEL: i64 @yourcall |
| 18 |
// CHECK: ret i64 2 |
| 19 |
return some_size(s); |
| 20 |
} |