~shimon/dismaltc

ref: 1ed81693aae22a7be0136e601ee14b226cce74d4 dismaltc/clang/test/Misc/find-diagnostic-id.c -rw-r--r-- 380 bytes
1ed81693Itoh Shimon oops, re-enabled more tests. 1 year, 6 months ago
                                                                                
1
2
3
4
5
6
7
// RUN: diagtool find-diagnostic-id warn_unused_variable > %t; FileCheck %s < %t
// RUN: cat %t | xargs diagtool find-diagnostic-id | FileCheck %s --check-prefix=INVERSE
// RUN: not diagtool find-diagnostic-id warn_unused_vars 2>&1 | FileCheck --check-prefix=ERROR %s

// CHECK: {{^[0-9]+$}}
// INVERSE: warn_unused_variable
// ERROR: error: invalid diagnostic 'warn_unused_vars'