[clang][lex] NFCI: Use DirectoryEntryRef in ModuleMap::inferFrameworkModule()
[llvm-project.git] / clang / test / Misc / serialized-diags-stable.c
blobe8ee83ec7499db8f5160cd7e8df6491354e5b4bb
1 // RUN: rm -f %t
2 // RUN: not %clang -Wall -fsyntax-only %s --serialize-diagnostics %t.dia > /dev/null 2>&1
3 // RUN: c-index-test -read-diagnostics %t.dia 2>&1 | FileCheck %s
5 // RUN: c-index-test -read-diagnostics %S/Inputs/serialized-diags-stable.dia 2>&1 | FileCheck %s
7 int foo(void) {
8 // CHECK: serialized-diags-stable.c:[[@LINE+2]]:1: warning: non-void function does not return a value [-Wreturn-type] [Semantic Issue]
9 // CHECK-NEXT: Number FIXITs = 0
12 // CHECK: serialized-diags-stable.c:[[@LINE+5]]:13: error: redefinition of 'bar' as different kind of symbol [] [Semantic Issue]
13 // CHECK-NEXT: Number FIXITs = 0
14 // CHECK-NEXT: +-{{.*}}serialized-diags-stable.c:[[@LINE+2]]:6: note: previous definition is here [] []
15 // CHECK-NEXT: Number FIXITs = 0
16 void bar(void) {}
17 typedef int bar;
20 // CHECK-LABEL: Number of diagnostics: 2