1 /* Verify that -Wmismatched-tags doesn't print stray notes for warnings 2 disabled in system headers. 3 { dg-do "compile" } 4 { dg-options "-Wmismatched-tags" } */ 5 6 # 6 "Wmismatched-tags-7.C" 1 7 # 1 "system-header.h" 1 3 4 8 # 9 "system-header.h" 3 4 9 class A; // { dg-bogus "first declared" } 10 struct A; // { dg-bogus "replace" } 11 # 12 "Wmismatched-tags-7.C" 2 12 class B; // { dg-message "first declared" } 13 struct B; // { dg-warning "\\\[-Wmismatched-tags" } 14