bolt/deps/llvm-18.1.8/clang/test/Driver/extract-api-multiheader-kind-diag.h

15 lines
452 B
C
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: rm -rf %t
// RUN: split-file %s %t
// RUN: not %clang -target x86_64-unknown-unknown -extract-api %t/first-header.h -x objective-c-header %t/second-header.h 2>&1 | FileCheck %s
// CHECK: error: header file
// CHECK-SAME: input 'objective-c-header' does not match the type of prior input in api extraction; use '-x c-header' to override
//--- first-header.h
void dummy_function(void);
//--- second-header.h
void other_dummy_function(void);