Duncan Sands | bb8f590 | 2010-11-25 21:24:35 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -O2 -S %s -o - | grep call |
Tanya Lattner | 4536612 | 2007-06-06 20:52:16 +0000 | [diff] [blame] | 2 | |
Tanya Lattner | 25e0cb3 | 2007-06-06 21:00:46 +0000 | [diff] [blame] | 3 | static int bar(int x, int y) __attribute__((noinline)); |
Tanya Lattner | 4536612 | 2007-06-06 20:52:16 +0000 | [diff] [blame] | 4 | |
Tanya Lattner | 25e0cb3 | 2007-06-06 21:00:46 +0000 | [diff] [blame] | 5 | static int bar(int x, int y) |
Tanya Lattner | 4536612 | 2007-06-06 20:52:16 +0000 | [diff] [blame] | 6 | { |
7 | return x + y; | ||||
8 | } | ||||
9 | |||||
10 | int foo(int a, int b) { | ||||
11 | return bar(b, a); | ||||
12 | } | ||||
13 |