summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2010-01-18-Inlined-Debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/2010-01-18-Inlined-Debug.c')
-rw-r--r--clang/test/CodeGen/2010-01-18-Inlined-Debug.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2010-01-18-Inlined-Debug.c b/clang/test/CodeGen/2010-01-18-Inlined-Debug.c
new file mode 100644
index 0000000..cf00be7
--- /dev/null
+++ b/clang/test/CodeGen/2010-01-18-Inlined-Debug.c
@@ -0,0 +1,12 @@
+// PR: 6058
+// RUN: %clang_cc1 -g -emit-llvm %s -O0 -o /dev/null
+
+static inline int foo(double) __attribute__ ((always_inline));
+static inline int foo(double __x) { return __x; }
+
+void bar(double x) {
+ foo(x);
+}
+
+
+