Diego Novillo | 6dc9c48 | 2014-05-08 13:49:54 +0000 | [diff] [blame] | 1 | // This file tests -Rpass diagnostics together with #line |
| 2 | // directives. We cannot map #line directives back to |
| 3 | // a SourceLocation. |
| 4 | |
Alp Toker | 2750627 | 2014-06-05 22:11:12 +0000 | [diff] [blame^] | 5 | // RUN: %clang_cc1 %s -Rpass=inline -S -gline-tables-only -dwarf-column-info -emit-llvm-only -verify |
| 6 | |
Diego Novillo | 6dc9c48 | 2014-05-08 13:49:54 +0000 | [diff] [blame] | 7 | int foo(int x, int y) __attribute__((always_inline)); |
| 8 | int foo(int x, int y) { return x + y; } |
| 9 | |
Alp Toker | 2750627 | 2014-06-05 22:11:12 +0000 | [diff] [blame^] | 10 | // expected-remark@+2 {{foo inlined into bar}} expected-note@+2 {{could not determine the original source location for /bad/path/to/original.c:1230:25}} |
Diego Novillo | 6dc9c48 | 2014-05-08 13:49:54 +0000 | [diff] [blame] | 11 | #line 1230 "/bad/path/to/original.c" |
| 12 | int bar(int j) { return foo(j, j - 2); } |