2011-07-09 04:17:28 +08:00
|
|
|
// Basic test
|
2011-02-24 07:52:14 +08:00
|
|
|
// RUN: rm -rf %t.dir
|
2011-02-24 10:39:40 +08:00
|
|
|
// RUN: mkdir -p %t.dir/a/b
|
|
|
|
// RUN: echo > %t.dir/a/b/x.h
|
|
|
|
// RUN: cd %t.dir
|
2011-07-09 04:17:28 +08:00
|
|
|
// RUN: %clang -MD -MF - %s -fsyntax-only -I a/b | FileCheck -check-prefix=CHECK-ONE %s
|
2011-11-17 15:21:33 +08:00
|
|
|
// CHECK-ONE: {{ }}a/b{{[/\\]}}x.h
|
2011-07-09 04:17:28 +08:00
|
|
|
|
|
|
|
// PR8974 (-include flag)
|
|
|
|
// RUN: %clang -MD -MF - %s -fsyntax-only -include a/b/x.h -DINCLUDE_FLAG_TEST | FileCheck -check-prefix=CHECK-TWO %s
|
|
|
|
// CHECK-TWO: {{ }}a/b/x.h
|
|
|
|
|
|
|
|
// rdar://problem/9734352 (paths involving ".")
|
|
|
|
// RUN: %clang -MD -MF - %s -fsyntax-only -I ./a/b | FileCheck -check-prefix=CHECK-THREE %s
|
2011-11-17 15:21:33 +08:00
|
|
|
// CHECK-THREE: {{ }}a/b{{[/\\]}}x.h
|
2011-07-09 04:17:28 +08:00
|
|
|
// RUN: %clang -MD -MF - %s -fsyntax-only -I .//./a/b/ | FileCheck -check-prefix=CHECK-FOUR %s
|
2011-11-17 15:21:33 +08:00
|
|
|
// CHECK-FOUR: {{ }}a/b{{[/\\]}}x.h
|
2011-07-09 04:17:28 +08:00
|
|
|
// RUN: %clang -MD -MF - %s -fsyntax-only -I a/b/. | FileCheck -check-prefix=CHECK-FIVE %s
|
2011-11-17 15:21:33 +08:00
|
|
|
// CHECK-FIVE: {{ }}a/b/.{{[/\\]}}x.h
|
2011-07-09 04:17:28 +08:00
|
|
|
// RUN: cd a/b
|
|
|
|
// RUN: %clang -MD -MF - %s -fsyntax-only -I ./ | FileCheck -check-prefix=CHECK-SIX %s
|
|
|
|
// CHECK-SIX: {{ }}x.h
|
2011-02-24 05:16:44 +08:00
|
|
|
|
2011-07-09 04:17:28 +08:00
|
|
|
#ifndef INCLUDE_FLAG_TEST
|
|
|
|
#include <x.h>
|
|
|
|
#endif
|