blob: 37c0cd90d15cca5ed53b86aff08e8b5cce8ed225 [file] [log] [blame]
Hal Finkelcc152192017-12-16 01:40:19 +00001// Make sure a note stays with its associated command-line argument diagnostic.
2// Previously, these diagnostics were grouped by diagnostic level with all
3// notes last.
4//
Hal Finkel05e46482017-12-16 02:23:22 +00005// RUN: not %clang_cc1 -O999 -std=bogus -verify=-foo %s 2> %t
Hal Finkelcc152192017-12-16 01:40:19 +00006// RUN: FileCheck < %t %s
7//
Hal Finkel05e46482017-12-16 02:23:22 +00008// CHECK: error: invalid value '-foo' in '-verify='
9// CHECK-NEXT: note: -verify prefixes must start with a letter and contain only alphanumeric characters, hyphens, and underscores
10// CHECK-NEXT: warning: optimization level '-O999' is not supported
Hal Finkelcc152192017-12-16 01:40:19 +000011// CHECK-NEXT: error: invalid value 'bogus' in '-std=bogus'
12// CHECK-NEXT: note: use {{.*}} for {{.*}} standard