llvm/mlir/test/mlir-pdll/Parser/dependency-file.pdll

// RUN: mlir-pdll %s -I %S -I %S/../../../include -d=%t -o %t.cpp.inc
// RUN: FileCheck %s < %t

// Test support for generating dependency files.

#include "include/ops.td"
#include "include/included.pdll"

// Check that we depend on the included files. We don't check for all transitive includes
// here to avoid the need to update this test every time we add a new transitive include.
// This test is mostly aimed to ensure we are generating the dependency file correctly.

// CHECK: {{.*}}.cpp.inc:
// CHECK-SAME: include/included.pdll
// CHECK-SAME: include/ops.td