2016-08-26 23:45:36 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -I %S/Inputs/SystemHeaderPrefix/.. %s 2>&1 | FileCheck -check-prefix=NORMAL -check-prefix=CHECK %s
|
|
|
|
// RUN: %clang_cc1 -fsyntax-only -I %S/Inputs/SystemHeaderPrefix/.. -fdiagnostics-absolute-paths %s 2>&1 | FileCheck -check-prefix=ABSOLUTE -check-prefix=CHECK %s
|
|
|
|
|
|
|
|
#include "absolute-paths.h"
|
|
|
|
|
|
|
|
// Check whether the diagnostic from the header above includes the dummy
|
|
|
|
// directory in the path.
|
|
|
|
// NORMAL: SystemHeaderPrefix
|
|
|
|
// ABSOLUTE-NOT: SystemHeaderPrefix
|
2019-11-09 23:15:53 +08:00
|
|
|
// CHECK: warning: non-void function does not return a value
|
2016-08-26 23:45:36 +08:00
|
|
|
|
|
|
|
|
|
|
|
// For files which don't exist, just print the filename.
|
|
|
|
#line 123 "non-existant.c"
|
|
|
|
int g() {}
|
2019-11-09 23:15:53 +08:00
|
|
|
// NORMAL: non-existant.c:123:10: warning: non-void function does not return a value
|
|
|
|
// ABSOLUTE: non-existant.c:123:10: warning: non-void function does not return a value
|