brintos

brintos / llvm-project-archived public Read only

0
0
Text · 626 B · bd0aa71 Raw
13 lines · c
1// Make sure a note stays with its associated command-line argument diagnostic.2// Previously, these diagnostics were grouped by diagnostic level with all3// notes last.4//5// RUN: not %clang_cc1 -O999 -std=bogus -verify=-foo %s 2> %t6// RUN: FileCheck < %t %s7//8// 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 underscores10// CHECK-NEXT: error: invalid value 'bogus' in '-std=bogus'11// CHECK-NEXT: note: use {{.*}} for {{.*}} standard12// CHECK: warning: optimization level '-O999' is not supported13