2013-09-26 03:07:08 +08:00
|
|
|
// RUN: not %clang %s -cake-is-lie -%0 -%d -HHHH -munknown-to-clang-option -print-stats -funknown-to-clang-option 2>&1 | \
|
2013-09-24 07:55:25 +08:00
|
|
|
// RUN: FileCheck %s
|
2012-01-26 04:00:43 +08:00
|
|
|
|
2013-09-24 07:55:25 +08:00
|
|
|
// CHECK: unknown argument: '-cake-is-lie'
|
|
|
|
// CHECK: unknown argument: '-%0'
|
|
|
|
// CHECK: unknown argument: '-%d'
|
|
|
|
// CHECK: unknown argument: '-HHHH'
|
2013-09-25 03:35:01 +08:00
|
|
|
// CHECK: unknown argument: '-munknown-to-clang-option'
|
2013-09-25 23:54:41 +08:00
|
|
|
// CHECK: unknown argument: '-print-stats'
|
2013-09-26 03:07:08 +08:00
|
|
|
// CHECK: unknown argument: '-funknown-to-clang-option'
|
2013-09-24 07:27:32 +08:00
|
|
|
|
|
|
|
|
2013-09-26 03:07:08 +08:00
|
|
|
// RUN: %clang -S %s -o %t.s -Wunknown-to-clang-option 2>&1 | FileCheck --check-prefix=IGNORED %s
|
2013-09-24 07:27:32 +08:00
|
|
|
|
|
|
|
// IGNORED: warning: unknown warning option '-Wunknown-to-clang-option'
|