brintos

brintos / llvm-project-archived public Read only

0
0
Text · 454 B · e4ce7aa Raw
16 lines · c
1// RUN: not %clang_cc1 -ferror-limit 1 -fsyntax-only %s 2>&1 | FileCheck %s2 3// error and note emitted4struct s1{};5struct s1{};6 7// error and note suppressed by error-limit8struct s2{};9struct s2{};10 11// CHECK: 5:8: error: redefinition of 's1'12// CHECK: 4:8: note: previous definition is here13// CHECK: fatal error: too many errors emitted, stopping now14// CHECK-NOT: 9:8: error: redefinition of 's2'15// CHECK-NOT: 8:8: note: previous definition is here16