github.phpd.cn/thought-machine/please@v12.2.0+incompatible/test/cc_rules/clang/test_binary.cc (about)

     1  // Just a wee binary to test that we can compile one ok.
     2  
     3  #include <string>
     4  
     5  #include "test/cc_rules/clang/embedded_files.h"
     6  
     7  
     8  int main(int argc, char** argv) {
     9      using namespace thought_machine;
    10  
    11      if (embedded_file1_contents() != "testing message 1\n") {
    12  	return 1;
    13      } else if (embedded_file3_contents() != "testing message 3\n") {
    14  	return 3;
    15      } else {
    16  	return 0;
    17      }
    18  }