Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / user-func-gnu-inline-redecl.c
blob0415cbe1e6c70a8a230cf9b89ebd7716b2b09656
1 // RUN: %clang_cc1 -triple x86_64 -S -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);