blob: d0bbc0c1c30910157caf84066664b536636b2fbb [file] [log] [blame]
// 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