diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-09-03 13:26:49 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-09-03 13:26:49 +0000 |
| commit | 0c9fa3f98268265f2fe712fc1b53bec56419dd35 (patch) | |
| tree | 5a06b7519396cdc75a00f8af06931d6c9da1ca27 /clang/test | |
| parent | 5b5c99d219884c4356d0ce47b896ed7c4d098cb2 (diff) | |
| download | bcm5719-llvm-0c9fa3f98268265f2fe712fc1b53bec56419dd35.tar.gz bcm5719-llvm-0c9fa3f98268265f2fe712fc1b53bec56419dd35.zip | |
Use -### instead of -ccc-print-options.
Convert the last few tests using -ccc-print-options to -### and remove
-ccc-print-options.
llvm-svn: 189802
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Driver/option-aliases.c | 23 | ||||
| -rw-r--r-- | clang/test/Driver/parsing.c | 22 | ||||
| -rw-r--r-- | clang/test/Driver/qa_override.c | 14 | ||||
| -rw-r--r-- | clang/test/Driver/working-directory.c | 7 |
4 files changed, 21 insertions, 45 deletions
diff --git a/clang/test/Driver/option-aliases.c b/clang/test/Driver/option-aliases.c index 38bf4b1a577..9cd9252a483 100644 --- a/clang/test/Driver/option-aliases.c +++ b/clang/test/Driver/option-aliases.c @@ -1,11 +1,14 @@ -// RUN: %clang -ccc-print-options \ -// RUN: --save-temps --undefine-macro=FOO --undefine-macro FOO \ -// RUN: --param=FOO --output=FOO 2> %t -// RUN: FileCheck --check-prefix=CHECK-OPTIONS < %t %s +// RUN: %clang -### -S \ +// RUN: --save-temps --undefine-macro=FOO --undefine-macro BAR \ +// RUN: --param=FOO --output=FOO %s 2>&1 | \ +// RUN: FileCheck %s -// CHECK-OPTIONS: Option 0 - Name: "-ccc-print-options", Values: {} -// CHECK-OPTIONS: Option 1 - Name: "-save-temps", Values: {} -// CHECK-OPTIONS: Option 2 - Name: "-U", Values: {"FOO"} -// CHECK-OPTIONS: Option 3 - Name: "-U", Values: {"FOO"} -// CHECK-OPTIONS: Option 4 - Name: "--param", Values: {"FOO"} -// CHECK-OPTIONS: Option 5 - Name: "-o", Values: {"FOO"} +// CHECK: "-cc1" +// CHECK: "-E" +// CHECK: "-U" "FOO" +// CHECK: "-U" "BAR" +// CHECK: "-o" "option-aliases.i" + +// CHECK-NEXT: "-cc1" +// CHECK: "-S" +// CHECK: "-o" "FOO" diff --git a/clang/test/Driver/parsing.c b/clang/test/Driver/parsing.c deleted file mode 100644 index eceba37d84f..00000000000 --- a/clang/test/Driver/parsing.c +++ /dev/null @@ -1,22 +0,0 @@ -// RUN: %clang -ccc-print-options input -Yunknown -m32 -arch ppc -djoined -A separate -Ajoined -Wp,one,two -Xarch_joined AndSeparate -sectalign 1 2 3 2> %t -// RUN: grep 'Option 0 - Name: "-ccc-print-options", Values: {}' %t -// RUN: grep 'Option 1 - Name: "<input>", Values: {"input"}' %t -// RUN: grep 'Option 2 - Name: "<unknown>", Values: {"-Yunknown"}' %t -// RUN: grep 'Option 3 - Name: "-m32", Values: {}' %t -// RUN: grep 'Option 4 - Name: "-arch", Values: {"ppc"}' %t -// RUN: grep 'Option 5 - Name: "-d", Values: {"joined"}' %t -// RUN: grep 'Option 6 - Name: "-A", Values: {"separate"}' %t -// RUN: grep 'Option 7 - Name: "-A", Values: {"joined"}' %t -// RUN: grep 'Option 8 - Name: "-Wp,", Values: {"one", "two"}' %t -// RUN: grep 'Option 9 - Name: "-Xarch_", Values: {"joined", "AndSeparate"}' %t -// RUN: grep 'Option 10 - Name: "-sectalign", Values: {"1", "2", "3"}' %t - -// RUN: not %clang -V 2> %t -// RUN: grep "error: argument to '-V' is missing (expected 1 value)" %t -// RUN: not %clang -sectalign 1 2 2> %t -// RUN: grep "error: argument to '-sectalign' is missing (expected 3 values)" %t - -// Verify that search continues after find the first option. -// RUN: %clang -ccc-print-options -Wally 2> %t -// RUN: grep 'Option 0 - Name: "-ccc-print-options", Values: {}' %t -// RUN: grep 'Option 1 - Name: "-W", Values: {"ally"}' %t diff --git a/clang/test/Driver/qa_override.c b/clang/test/Driver/qa_override.c index 54fdddce9eb..f556f4b5aca 100644 --- a/clang/test/Driver/qa_override.c +++ b/clang/test/Driver/qa_override.c @@ -1,14 +1,10 @@ -// RUN: env QA_OVERRIDE_GCC3_OPTIONS="#+-Os +-Oz +-O +-O3 +-Oignore +a +b +c xb Xa Omagic ^-ccc-print-options " %clang x -O2 b -O3 2>&1 | FileCheck %s +// RUN: env QA_OVERRIDE_GCC3_OPTIONS="#+-Os +-Oz +-O +-O3 +-Oignore +a +b +c xb Xa Omagic ^-### " %clang %s -O2 b -O3 2>&1 | FileCheck %s // RUN: env QA_OVERRIDE_GCC3_OPTIONS="x-Werror +-mfoo" %clang -Werror %s -c -### 2>&1 | FileCheck %s -check-prefix=RM-WERROR -// FIXME: It seems doesn't work with gcc-driver. -// REQUIRES: clang-driver - -// CHECK-NOT: ### -// CHECK: Option 0 - Name: "-ccc-print-options", Values: {} -// CHECK-NEXT: Option 1 - Name: "<input>", Values: {"x"} -// CHECK-NEXT: Option 2 - Name: "-O", Values: {"ignore"} -// CHECK-NEXT: Option 3 - Name: "-O", Values: {"magic"} +// CHECK: "-cc1" +// CHECK-NOT: "-Oignore" +// CHECK: "-Omagic" +// CHECK-NOT: "-Oignore" // RM-WERROR: ### QA_OVERRIDE_GCC3_OPTIONS: x-Werror +-mfoo // RM-WERROR-NEXT: ### Deleting argument -Werror diff --git a/clang/test/Driver/working-directory.c b/clang/test/Driver/working-directory.c index 38a87a6402a..15ba8f00bd1 100644 --- a/clang/test/Driver/working-directory.c +++ b/clang/test/Driver/working-directory.c @@ -1,4 +1,3 @@ -// RUN: %clang -ccc-print-options -working-directory "C:\Test" input 2>&1 | FileCheck %s -// CHECK: Option 0 - Name: "-ccc-print-options", Values: {} -// CHECK: Option 1 - Name: "-working-directory", Values: {"C:\Test"} -// CHECK: Option 2 - Name: "<input>", Values: {"input"} +// RUN: %clang -### -working-directory /no/such/dir/ input 2>&1 | FileCheck %s + +//CHECK: no such file or directory: '/no/such/dir/input' |

