Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Driver/config-file3.c
Show All 12 Lines | |||||
// CHECK-REL: Configuration file: {{.*}}/workdir/cfg-1 | // CHECK-REL: Configuration file: {{.*}}/workdir/cfg-1 | ||||
// CHECK-REL: -Wundefined-var-template | // CHECK-REL: -Wundefined-var-template | ||||
//--- Invocation qqq-clang-g++ tries to find config file qqq-clang-g++.cfg first. | //--- Invocation qqq-clang-g++ tries to find config file qqq-clang-g++.cfg first. | ||||
// | // | ||||
// RUN: rm -rf %T/testdmode | // RUN: rm -rf %T/testdmode | ||||
// RUN: mkdir -p %T/testdmode | // RUN: mkdir -p %T/testdmode | ||||
// RUN: ln -s %clang %T/testdmode/qqq-clang-g++ | // RUN: ln -s %clang_bin %T/testdmode/qqq-clang-g++ | ||||
// RUN: echo "-Wundefined-func-template" > %T/testdmode/qqq-clang-g++.cfg | // RUN: echo "-Wundefined-func-template" > %T/testdmode/qqq-clang-g++.cfg | ||||
// RUN: echo "-Werror" > %T/testdmode/qqq.cfg | // RUN: echo "-Werror" > %T/testdmode/qqq.cfg | ||||
// RUN: %T/testdmode/qqq-clang-g++ --config-system-dir= --config-user-dir= -c -no-canonical-prefixes %s -### 2>&1 | FileCheck %s -check-prefix FULL-NAME | // RUN: %T/testdmode/qqq-clang-g++ --config-system-dir= --config-user-dir= -c -no-canonical-prefixes %s -### 2>&1 | FileCheck %s -check-prefix FULL-NAME | ||||
// | // | ||||
// FULL-NAME: Configuration file: {{.*}}/testdmode/qqq-clang-g++.cfg | // FULL-NAME: Configuration file: {{.*}}/testdmode/qqq-clang-g++.cfg | ||||
// FULL-NAME: -Wundefined-func-template | // FULL-NAME: -Wundefined-func-template | ||||
// FULL-NAME-NOT: -Werror | // FULL-NAME-NOT: -Werror | ||||
// | // | ||||
Show All 20 Lines | |||||
// SHORT-NAME: -Werror | // SHORT-NAME: -Werror | ||||
// SHORT-NAME-NOT: -Wundefined-func-template | // SHORT-NAME-NOT: -Wundefined-func-template | ||||
//--- Config files are searched for in binary directory as well. | //--- Config files are searched for in binary directory as well. | ||||
// | // | ||||
// RUN: rm -rf %T/testbin | // RUN: rm -rf %T/testbin | ||||
// RUN: mkdir -p %T/testbin | // RUN: mkdir -p %T/testbin | ||||
// RUN: ln -s %clang %T/testbin/clang | // RUN: ln -s %clang_bin %T/testbin/clang | ||||
// RUN: echo "-Werror" > %T/testbin/aaa.cfg | // RUN: echo "-Werror" > %T/testbin/aaa.cfg | ||||
// RUN: %T/testbin/clang --config-system-dir= --config-user-dir= --config aaa.cfg -c -no-canonical-prefixes %s -### 2>&1 | FileCheck %s -check-prefix CHECK-BIN | // RUN: %T/testbin/clang --config-system-dir= --config-user-dir= --config aaa.cfg -c -no-canonical-prefixes %s -### 2>&1 | FileCheck %s -check-prefix CHECK-BIN | ||||
// | // | ||||
// CHECK-BIN: Configuration file: {{.*}}/testbin/aaa.cfg | // CHECK-BIN: Configuration file: {{.*}}/testbin/aaa.cfg | ||||
// CHECK-BIN: -Werror | // CHECK-BIN: -Werror | ||||
//--- If command line contains options that change triple (for instance, -m32), clang tries | //--- If command line contains options that change triple (for instance, -m32), clang tries | ||||
// reloading config file. | // reloading config file. | ||||
//--- When reloading config file, x86_64-clang-g++ tries to find config i386-clang-g++.cfg first. | //--- When reloading config file, x86_64-clang-g++ tries to find config i386-clang-g++.cfg first. | ||||
// | // | ||||
// RUN: rm -rf %T/testreload | // RUN: rm -rf %T/testreload | ||||
// RUN: mkdir -p %T/testreload | // RUN: mkdir -p %T/testreload | ||||
// RUN: ln -s %clang %T/testreload/x86_64-clang-g++ | // RUN: ln -s %clang_bin %T/testreload/x86_64-clang-g++ | ||||
// RUN: echo "-Wundefined-func-template" > %T/testreload/i386-clang-g++.cfg | // RUN: echo "-Wundefined-func-template" > %T/testreload/i386-clang-g++.cfg | ||||
// RUN: echo "-Werror" > %T/testreload/i386.cfg | // RUN: echo "-Werror" > %T/testreload/i386.cfg | ||||
// RUN: %T/testreload/x86_64-clang-g++ --config-system-dir= --config-user-dir= -c -m32 -no-canonical-prefixes %s -### 2>&1 | FileCheck %s -check-prefix CHECK-RELOAD | // RUN: %T/testreload/x86_64-clang-g++ --config-system-dir= --config-user-dir= -c -m32 -no-canonical-prefixes %s -### 2>&1 | FileCheck %s -check-prefix CHECK-RELOAD | ||||
// | // | ||||
// CHECK-RELOAD: Configuration file: {{.*}}/testreload/i386-clang-g++.cfg | // CHECK-RELOAD: Configuration file: {{.*}}/testreload/i386-clang-g++.cfg | ||||
// CHECK-RELOAD: -Wundefined-func-template | // CHECK-RELOAD: -Wundefined-func-template | ||||
// CHECK-RELOAD-NOT: -Werror | // CHECK-RELOAD-NOT: -Werror | ||||
Show All 25 Lines |