aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/resource-dir.cpp
blob: 106e88399551e9e64c945c266c8ee013b89bea40 (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) {}