mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45:43 +02:00
An additional test case for AddIncludeTest.
This commit is contained in:
parent
75a5e159ac
commit
3845ffee22
6 changed files with 27 additions and 7 deletions
|
@ -1,9 +1,5 @@
|
|||
#include "A.h"
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
void test() {
|
||||
func(0);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,10 +1,8 @@
|
|||
#include "A.h"
|
||||
#include "OverloadedFunction.h"
|
||||
|
||||
namespace ns3 {
|
||||
using ns3::func;
|
||||
|
||||
void test() {
|
||||
func(0);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
#include "ResolvedName.h"
|
||||
|
||||
using ns4::A;
|
||||
|
||||
void test() {
|
||||
B b;
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
#include "ResolvedName.h"
|
||||
#include "UnresolvedName.h"
|
||||
|
||||
using ns4::A;
|
||||
using ns5::B;
|
||||
|
||||
void test() {
|
||||
B b;
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
namespace ns5 {
|
||||
|
||||
class B {};
|
||||
|
||||
}
|
|
@ -121,6 +121,11 @@ public class AddIncludeTest extends TestCase {
|
|||
assertAddIncludeResult();
|
||||
}
|
||||
|
||||
public void testUnresolvedName() throws Exception {
|
||||
select("B");
|
||||
assertAddIncludeResult();
|
||||
}
|
||||
|
||||
public void testVariableType() throws Exception {
|
||||
select("a_");
|
||||
assertAddIncludeResult();
|
||||
|
|
Loading…
Add table
Reference in a new issue