From: John Criswell Date: Mon, 25 Sep 2006 19:12:01 +0000 (+0000) Subject: Regression test for PR#922. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a47c2e49276351cedf5a7e66852cafff52042ec2;p=oota-llvm.git Regression test for PR#922. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30599 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CFrontend/2006-09-25-DebugFilename.c b/test/CFrontend/2006-09-25-DebugFilename.c new file mode 100644 index 00000000000..c59e9ad2ce7 --- /dev/null +++ b/test/CFrontend/2006-09-25-DebugFilename.c @@ -0,0 +1,5 @@ +// RUN: %llvmgcc -xc %s -S -o /dev/null 2>&1 | grep fluffy | grep '2006-09-25-DebugFilename.c.tr' +#include "2006-09-25-DebugFilename.h" +int func1() { return hfunc1(); } +int func2() { fluffy; return hfunc1(); } + diff --git a/test/CFrontend/2006-09-25-DebugFilename.h b/test/CFrontend/2006-09-25-DebugFilename.h new file mode 100644 index 00000000000..9b03666b3c2 --- /dev/null +++ b/test/CFrontend/2006-09-25-DebugFilename.h @@ -0,0 +1,6 @@ +extern int exfunc(int a); + +static inline int hfunc1() +{ + return exfunc(1); +}