This should always be signed chars, so use int8_t. This fixes a miscompile when
[llvm/stm8.git] / test / FrontendC++ / 2004-09-27-CompilerCrash.cpp
blobf52baaf7058ccb6035f3cf83de87118a21526405
1 // RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
3 struct Pass {} ;
4 template<typename PassName>
5 Pass *callDefaultCtor() { return new PassName(); }
7 void foo(Pass *(*C)());
9 #include <string>
11 bool foo(std::string &X) {
12 return X.empty();