[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / user-func-gnu-inline-redecl.c
blobd706f690048b6168ab11705166d26e7dacbdbc4f
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
5 extern inline __attribute__((gnu_inline)) unsigned long some_size(int c) {
6 return 1;
8 unsigned long mycall(int s) {
9 // CHECK-LABEL: i64 @mycall
10 // CHECK: ret i64 2
11 return some_size(s);
13 unsigned long some_size(int c) {
14 return 2;
16 unsigned long yourcall(int s) {
17 // CHECK-LABEL: i64 @yourcall
18 // CHECK: ret i64 2
19 return some_size(s);