blob: e557fc631ded37383f2f6116e5aaa73329980bd2 [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//
5// RUN: not %clang_cc1 -O999 -std=bogus %s 2> %t
6// RUN: FileCheck < %t %s
7//
8// CHECK: warning: optimization level '-O999' is not supported
9// CHECK-NEXT: error: invalid value 'bogus' in '-std=bogus'
10// CHECK-NEXT: note: use {{.*}} for {{.*}} standard