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