mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 22:32:47 +00:00
9119b4fb49
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106862 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
292 B
C
17 lines
292 B
C
// RUN: %llvmgcc -S -O2 -g %s -o - | llc -O2 -o %t.s
|
|
// RUN: grep "# DW_TAG_formal_parameter" %t.s | count 4
|
|
// Radar 8122864
|
|
// XFAIL: powerpc
|
|
static int foo(int a, int j) {
|
|
int k = 0;
|
|
if (a)
|
|
k = a + j;
|
|
else
|
|
k = j;
|
|
return k;
|
|
}
|
|
int bar(int o, int p) {
|
|
|
|
return foo(o, p);
|
|
}
|