@@ -640,7 +640,7 @@ pph_include_handler (cpp_reader *reader,
read_text_file_p = false;
}
else
- warning_at (input_location, OPT_Wmissing_pph,
+ warning_at (loc, OPT_Wmissing_pph,
"cannot open PPH file %s for reading: %m\n"
"using original header %s", pph_file, name);
}
@@ -1,4 +1,4 @@
-// { dg-message ".*fatal error: cannot open PPH file.*" }
+// { dg-options "-Wmissing-pph"
#define NAME v
#define VALUE 1
-#include "d0symnotinc.h"
+#include "d0symnotinc.h" // { dg-warning "cannot open PPH file .*" }
@@ -1,3 +1,4 @@
+// { dg-options "-Winvalid-pph" }
namespace smother {
-#include "x1struct1.h" // { dg-error "PPH file .* not included at global scope" "" }
+#include "x1struct1.h" // { dg-warning "PPH file .* not included at global scope" "" }
}