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_todo_import_user_defined_literal.carbon:[[@LINE+4]]:10: in file included here [InCppInclude]
622
+
// CHECK:STDERR: ./user_defined_literal.h:4:16: error: no matching literal operator for call to 'operator""_kb' with argument of type 'unsigned long long' or 'const char *', and no matching literal operator template [CppInteropParseError]
623
+
// CHECK:STDERR: 4 | #define M_1KB 1_kb
624
+
// CHECK:STDERR: | ^
625
+
importCpp library "user_defined_literal.h";
626
+
627
+
fnF() {
628
+
// CHECK:STDERR: fail_todo_import_user_defined_literal.carbon:[[@LINE+15]]:2: note: in `Cpp` name lookup for `M_1KB` [InCppNameLookup]
629
+
// CHECK:STDERR: Cpp.M_1KB;
630
+
// CHECK:STDERR: ^~~~~~~~~
631
+
// CHECK:STDERR:
632
+
// CHECK:STDERR: fail_todo_import_user_defined_literal.carbon:[[@LINE+11]]:2: error: failed to parse macro Cpp.M_1KB to a valid constant expression [InCppMacroEvaluation]
633
+
// CHECK:STDERR: Cpp.M_1KB;
634
+
// CHECK:STDERR: ^~~~~~~~~
635
+
// CHECK:STDERR: fail_todo_import_user_defined_literal.carbon:[[@LINE+8]]:2: note: in `Cpp` name lookup for `M_1KB` [InCppNameLookup]
636
+
// CHECK:STDERR: Cpp.M_1KB;
637
+
// CHECK:STDERR: ^~~~~~~~~
638
+
// CHECK:STDERR:
639
+
// CHECK:STDERR: fail_todo_import_user_defined_literal.carbon:[[@LINE+4]]:2: error: member name `M_1KB` not found in `Cpp` [MemberNameNotFoundInInstScope]
0 commit comments