mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 19:20:13 +01:00
Add missing Cpp. to unsupported decl type test (#5907)
Followup of #5787.
This commit is contained in:
@@ -22,11 +22,18 @@ import Cpp library "template.h";
|
||||
|
||||
fn F() {
|
||||
//@dump-sem-ir-begin
|
||||
// CHECK:STDERR: fail_todo_use_template.carbon:[[@LINE+4]]:10: error: name `C` not found [NameNotFound]
|
||||
// CHECK:STDERR: var c: C({});
|
||||
// CHECK:STDERR: ^
|
||||
// CHECK:STDERR: fail_todo_use_template.carbon:[[@LINE+11]]:10: error: semantics TODO: `Unsupported: Declaration type ClassTemplate` [SemanticsTodo]
|
||||
// CHECK:STDERR: var c: Cpp.C({});
|
||||
// CHECK:STDERR: ^~~~~
|
||||
// CHECK:STDERR: fail_todo_use_template.carbon:[[@LINE+8]]:10: note: in `Cpp` name lookup for `C` [InCppNameLookup]
|
||||
// CHECK:STDERR: var c: Cpp.C({});
|
||||
// CHECK:STDERR: ^~~~~
|
||||
// CHECK:STDERR:
|
||||
var c: C({});
|
||||
// CHECK:STDERR: fail_todo_use_template.carbon:[[@LINE+4]]:10: error: member name `C` not found in `Cpp` [MemberNameNotFoundInInstScope]
|
||||
// CHECK:STDERR: var c: Cpp.C({});
|
||||
// CHECK:STDERR: ^~~~~
|
||||
// CHECK:STDERR:
|
||||
var c: Cpp.C({});
|
||||
//@dump-sem-ir-end
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user