Forbid arrays of function-type and structures with function-typed fields.
[llvm/avr.git] / test / FrontendC++ / 2003-11-02-WeakLinkage.cpp
blob748ca6385be9491f33df07ddbc2850d2caaec04a
1 // RUN: %llvmgcc -xc++ -S -o - %s | not grep weak
2 // The template should compile to linkonce linkage, not weak linkage.
4 template<class T>
5 void thefunc();
7 template<class T>
8 inline void thefunc() {}
10 void test() {
11 thefunc<int>();