FOC/L4RE: Upstream revision 47
This commit is contained in:
31
tools/preprocess/test/implement_template.cpp
Normal file
31
tools/preprocess/test/implement_template.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
INTERFACE:
|
||||
|
||||
template< typename T >
|
||||
class Test
|
||||
{
|
||||
public:
|
||||
void test_func();
|
||||
};
|
||||
|
||||
|
||||
IMPLEMENTATION:
|
||||
|
||||
IMPLEMENT
|
||||
template< typename T >
|
||||
// comment
|
||||
void __attribute__((deprecated))
|
||||
Test<T>::test_func()
|
||||
{
|
||||
}
|
||||
|
||||
PUBLIC
|
||||
template< typename T > // comment 1
|
||||
template<
|
||||
typename X, // comment within template args list
|
||||
typename X2 // another comment in tl args
|
||||
>
|
||||
// comment 2
|
||||
void __attribute__((deprecated))
|
||||
Test<T>::test_func2<X, X2>()
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user