mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Test case for noinline attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37479 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4e2288b9de
commit
4536612477
13
test/CFrontend/2007-06-05-NoInlineAttribute.c
Normal file
13
test/CFrontend/2007-06-05-NoInlineAttribute.c
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep llvm.noinline
|
||||||
|
|
||||||
|
int bar(int x, int y); __attribute__((noinline))
|
||||||
|
|
||||||
|
int bar(int x, int y)
|
||||||
|
{
|
||||||
|
return x + y;
|
||||||
|
}
|
||||||
|
|
||||||
|
int foo(int a, int b) {
|
||||||
|
return bar(b, a);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user