summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/resource-dir.cpp
blob: 484d7f557623b86cbd784157161929c1d7221935 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang %s -fsyntax-only -### 2> %t.log
// RUN: FileCheck %s --check-prefix=CHECK-DEFAULT < %t.log

// CHECK-DEFAULT: "-resource-dir" "{{.+}}/../lib/clang/{{.+}}"

// RUN: %clang %s -fsyntax-only -ccc-install-dir /my/install/dir -### 2> %t.log
// RUN: FileCheck %s --check-prefix=CHECK-INSTALL-DIR < %t.log
// CHECK-INSTALL-DIR: "-resource-dir" "/my/install/dir/../lib/clang

void foo(void) {}
OpenPOWER on IntegriCloud