You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// CHECK:STDERR: fail_unsupported_character_literal_types.carbon:[[@LINE+11]]:16: error: semantics TODO: `Unsupported: C++ literal's type `char16_t` could not be mapped to a Carbon type` [SemanticsTodo]
493
+
// CHECK:STDERR: let a: char = Cpp.M_UTF16_CHAR;
494
+
// CHECK:STDERR: ^~~~~~~~~~~~~~~~
495
+
// CHECK:STDERR: fail_unsupported_character_literal_types.carbon:[[@LINE+8]]:16: note: in `Cpp` name lookup for `M_UTF16_CHAR` [InCppNameLookup]
496
+
// CHECK:STDERR: let a: char = Cpp.M_UTF16_CHAR;
497
+
// CHECK:STDERR: ^~~~~~~~~~~~~~~~
498
+
// CHECK:STDERR:
499
+
// CHECK:STDERR: fail_unsupported_character_literal_types.carbon:[[@LINE+4]]:16: error: member name `M_UTF16_CHAR` not found in `Cpp` [MemberNameNotFoundInInstScope]
500
+
// CHECK:STDERR: let a: char = Cpp.M_UTF16_CHAR;
501
+
// CHECK:STDERR: ^~~~~~~~~~~~~~~~
502
+
// CHECK:STDERR:
503
+
let a: char= Cpp.M_UTF16_CHAR;
504
+
// CHECK:STDERR: fail_unsupported_character_literal_types.carbon:[[@LINE+11]]:16: error: semantics TODO: `Unsupported: C++ literal's type `char32_t` could not be mapped to a Carbon type` [SemanticsTodo]
505
+
// CHECK:STDERR: let b: char = Cpp.M_UTF32_CHAR;
506
+
// CHECK:STDERR: ^~~~~~~~~~~~~~~~
507
+
// CHECK:STDERR: fail_unsupported_character_literal_types.carbon:[[@LINE+8]]:16: note: in `Cpp` name lookup for `M_UTF32_CHAR` [InCppNameLookup]
508
+
// CHECK:STDERR: let b: char = Cpp.M_UTF32_CHAR;
509
+
// CHECK:STDERR: ^~~~~~~~~~~~~~~~
510
+
// CHECK:STDERR:
511
+
// CHECK:STDERR: fail_unsupported_character_literal_types.carbon:[[@LINE+4]]:16: error: member name `M_UTF32_CHAR` not found in `Cpp` [MemberNameNotFoundInInstScope]
512
+
// CHECK:STDERR: let b: char = Cpp.M_UTF32_CHAR;
513
+
// CHECK:STDERR: ^~~~~~~~~~~~~~~~
514
+
// CHECK:STDERR:
515
+
let b: char= Cpp.M_UTF32_CHAR;
516
+
// CHECK:STDERR: fail_unsupported_character_literal_types.carbon:[[@LINE+11]]:16: error: semantics TODO: `Unsupported: C++ literal's type `wchar_t` could not be mapped to a Carbon type` [SemanticsTodo]
517
+
// CHECK:STDERR: let c: char = Cpp.M_WIDE_CHAR;
518
+
// CHECK:STDERR: ^~~~~~~~~~~~~~~
519
+
// CHECK:STDERR: fail_unsupported_character_literal_types.carbon:[[@LINE+8]]:16: note: in `Cpp` name lookup for `M_WIDE_CHAR` [InCppNameLookup]
520
+
// CHECK:STDERR: let c: char = Cpp.M_WIDE_CHAR;
521
+
// CHECK:STDERR: ^~~~~~~~~~~~~~~
522
+
// CHECK:STDERR:
523
+
// CHECK:STDERR: fail_unsupported_character_literal_types.carbon:[[@LINE+4]]:16: error: member name `M_WIDE_CHAR` not found in `Cpp` [MemberNameNotFoundInInstScope]
524
+
// CHECK:STDERR: let c: char = Cpp.M_WIDE_CHAR;
525
+
// CHECK:STDERR: ^~~~~~~~~~~~~~~
526
+
// CHECK:STDERR:
527
+
let c: char= Cpp.M_WIDE_CHAR;
528
+
}
529
+
530
+
// --- fail_assign_to_character_literals.carbon
531
+
532
+
library "[[@TEST_NAME]]";
533
+
534
+
importCpp library "character_literals.h";
535
+
536
+
fnF() {
537
+
// CHECK:STDERR: fail_assign_to_character_literals.carbon:[[@LINE+4]]:2: error: expression is not assignable [AssignmentToNonAssignable]
0 commit comments