blob: e758cbf6e7c534483b9cddb5300d2acbb4841cfc [file] [log] [blame]
Duncan Sands7319f152009-05-17 19:37:02 +00001// RUN: %llvmgcc -S %s -O0 -o - -mllvm --disable-llvm-optzns | grep bar
2// Check that the gcc inliner is turned off.
3
4#include <stdio.h>
5static __inline__ __attribute__ ((always_inline))
6 int bar (int x)
7{
8 return 4;
9}
10
11void
12foo ()
13{
14 long long b = 1;
15 int Y = bar (4);
16 printf ("%d\n", Y);
17}