Test a few %template errors
This commit is contained in:
parent
96e99416d7
commit
09af283371
2 changed files with 12 additions and 0 deletions
9
Examples/test-suite/errors/cpp_invalid_template.i
Normal file
9
Examples/test-suite/errors/cpp_invalid_template.i
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
%module cpp_invalid_scope
|
||||
|
||||
%template(abc) SSS::AAA<int>;
|
||||
|
||||
namespace UUU {
|
||||
struct JJJ;
|
||||
}
|
||||
|
||||
%template(xxx) UUU::JJJ<int>;
|
||||
3
Examples/test-suite/errors/cpp_invalid_template.stderr
Normal file
3
Examples/test-suite/errors/cpp_invalid_template.stderr
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
cpp_invalid_template.i:3: Error: Undefined scope 'SSS'
|
||||
cpp_invalid_template.i:3: Error: Template 'SSS::AAA' undefined.
|
||||
cpp_invalid_template.i:9: Error: 'JJJ' is not defined as a template. (classforward)
|
||||
Loading…
Add table
Add a link
Reference in a new issue