clang/test/Driver/extract-api-multiheader-kind-diag.h
raw| 1 | // RUN: rm -rf %t |
| 2 | // RUN: split-file %s %t |
| 3 | // 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 |
| 4 | |
| 5 | // CHECK: error: header file |
| 6 | // CHECK-SAME: input 'objective-c-header' does not match the type of prior input in api extraction; use '-x c-header' to override |
| 7 | |
| 8 | //--- first-header.h |
| 9 | |
| 10 | void dummy_function(void); |
| 11 | |
| 12 | //--- second-header.h |
| 13 | |
| 14 | void other_dummy_function(void); |