Fix part 1 of pr4682. PICADD is a 16-bit instruction even in thumb2 mode.
[llvm/avr.git] / test / FrontendC++ / 2004-09-27-CompilerCrash.cpp
blobf507c2391508b65a3afeb096b1cc9ab64709119c
1 // RUN: %llvmgxx -S %s -o - | llvm-as -f -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();