1 // RUN: rm -rf %t 2 // RUN: split-file %s %t 3 // RUN: %clang -target x86_64-unknown-unknown -ccc-print-phases -extract-api %t/first-header.h %t/second-header.h 2> %t1 4 // RUN: echo 'END' >> %t1 5 // RUN: FileCheck -check-prefix EXTRACT-API-PHASES -input-file %t1 %s 6 7 // EXTRACT-API-PHASES: 0: input 8 // EXTRACT-API-PHASES-SAME: , c-header 9 // EXTRACT-API-PHASES-NEXT: 1: preprocessor, {0}, c-header-cpp-output 10 // EXTRACT-API-PHASES-NEXT: 2: input 11 // EXTRACT-API-PHASES-SAME: , c-header 12 // EXTRACT-API-PHASES-NEXT: 3: preprocessor, {2}, c-header-cpp-output 13 // EXTRACT-API-PHASES-NEXT: 4: api-extractor, {1, 3}, api-information 14 // EXTRACT-API-PHASES-NOT: 5: 15 // EXTRACT-API-PHASES: END 16 17 //--- first-header.h 18 19 void dummy_function(void); 20 21 //--- second-header.h 22 23 void other_dummy_function(void); 24