blob: 9543538fb1b9e7b1e73d67d6b4eaf173e1292f00 [file] [log] [blame]
Duncan Sandsbb8f5902010-11-25 21:24:35 +00001// RUN: %llvmgcc -O2 -S %s -o - | grep call
Tanya Lattner45366122007-06-06 20:52:16 +00002
Tanya Lattner25e0cb32007-06-06 21:00:46 +00003static int bar(int x, int y) __attribute__((noinline));
Tanya Lattner45366122007-06-06 20:52:16 +00004
Tanya Lattner25e0cb32007-06-06 21:00:46 +00005static int bar(int x, int y)
Tanya Lattner45366122007-06-06 20:52:16 +00006{
7 return x + y;
8}
9
10int foo(int a, int b) {
11 return bar(b, a);
12}
13