blob: 8e95e33fe6dafca21e4c41ff0bbe52718f842f83 [file] [log] [blame]
Diego Novillo6dc9c482014-05-08 13:49:54 +00001// This file tests -Rpass diagnostics together with #line
2// directives. We cannot map #line directives back to
3// a SourceLocation.
4
Douglas Katzman3459ce22015-10-08 04:24:12 +00005// RUN: %clang_cc1 %s -Rpass=inline -debug-info-kind=line-tables-only -dwarf-column-info -emit-llvm-only -verify
Alp Toker27506272014-06-05 22:11:12 +00006
Diego Novillo6dc9c482014-05-08 13:49:54 +00007int foo(int x, int y) __attribute__((always_inline));
8int foo(int x, int y) { return x + y; }
9
Evgeniy Stepanov6b2a61d2015-09-14 21:35:16 +000010// 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 Novillo6dc9c482014-05-08 13:49:54 +000011#line 1230 "/bad/path/to/original.c"
12int bar(int j) { return foo(j, j - 2); }