blob: f4c0011fb4f8d7c11fda7009a5e56d760ca185ee [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
Alp Toker7ce5f022014-06-06 11:20:58 +00005// RUN: %clang_cc1 %s -Rpass=inline -gline-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
Alp Toker27506272014-06-05 22:11:12 +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); }