summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/available-externally-suppress.c
blob: c3b7a213baf6e58ee8fff5df67764843a81207f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -emit-llvm -o - -O0 -triple x86_64-apple-darwin10 %s | FileCheck %s

// Ensure that we don't emit available_externally functions at -O0.
int x;

inline void f0(int y) { x = y; }

// CHECK: define void @test()
// CHECK: declare void @f0(i32)
void test() {
  f0(17);
}
OpenPOWER on IntegriCloud