llvm-capstone/clang/test/Frontend/rewrite-includes-filenotfound.c
Richard Smith 4b46f72c7f PR32848: There isn't necessarily a FileChanged or FileSkipped for every InclusionDirective callback.
In particular, you don't get one if the inclusion directive encountered an
error. Don't assert in that case.

llvm-svn: 304506
2017-06-02 01:05:44 +00:00

7 lines
202 B
C

// RUN: not %clang_cc1 -E -frewrite-includes %s -o - 2>&1 | FileCheck %s
#include "this file does not exist.foo"
#include "this file also does not exist.foo"
CHECK: fatal error: {{.*}} file not found