|
|
@@ -28,13 +28,13 @@ fn NS.E();
|
|
|
|
|
|
library "extern_api";
|
|
|
|
|
|
-extern fn A();
|
|
|
-extern fn B(b: i32) -> i32;
|
|
|
-extern fn C(c: (i32,)) -> {.c: i32};
|
|
|
-extern fn D();
|
|
|
+extern library "redecl_extern_api" fn A();
|
|
|
+extern library "redecl_extern_api" fn B(b: i32) -> i32;
|
|
|
+extern library "redecl_extern_api" fn C(c: (i32,)) -> {.c: i32};
|
|
|
+extern library "redecl_extern_api" fn D();
|
|
|
|
|
|
namespace NS;
|
|
|
-extern fn NS.E();
|
|
|
+extern library "redecl_extern_api" fn NS.E();
|
|
|
|
|
|
// ============================================================================
|
|
|
// Test files
|
|
|
@@ -52,16 +52,66 @@ var c: {.c: i32} = C((1,));
|
|
|
var d: () = D();
|
|
|
var e: () = NS.E();
|
|
|
|
|
|
-// --- redecl_api.carbon
|
|
|
+// --- fail_redecl_api.carbon
|
|
|
|
|
|
library "redecl_api";
|
|
|
|
|
|
import library "api";
|
|
|
|
|
|
+// CHECK:STDERR: fail_redecl_api.carbon:[[@LINE+10]]:1: ERROR: Redeclarations of `fn A` must match use of `extern`.
|
|
|
+// CHECK:STDERR: extern fn A();
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR: fail_redecl_api.carbon:[[@LINE-5]]:1: In import.
|
|
|
+// CHECK:STDERR: import library "api";
|
|
|
+// CHECK:STDERR: ^~~~~~
|
|
|
+// CHECK:STDERR: api.carbon:4:1: Previously declared here.
|
|
|
+// CHECK:STDERR: fn A();
|
|
|
+// CHECK:STDERR: ^~~~~~~
|
|
|
+// CHECK:STDERR:
|
|
|
extern fn A();
|
|
|
+// CHECK:STDERR: fail_redecl_api.carbon:[[@LINE+10]]:1: ERROR: Redeclarations of `fn B` must match use of `extern`.
|
|
|
+// CHECK:STDERR: extern fn B(b: i32) -> i32;
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR: fail_redecl_api.carbon:[[@LINE-16]]:1: In import.
|
|
|
+// CHECK:STDERR: import library "api";
|
|
|
+// CHECK:STDERR: ^~~~~~
|
|
|
+// CHECK:STDERR: api.carbon:5:1: Previously declared here.
|
|
|
+// CHECK:STDERR: fn B(b: i32) -> i32;
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR:
|
|
|
extern fn B(b: i32) -> i32;
|
|
|
+// CHECK:STDERR: fail_redecl_api.carbon:[[@LINE+10]]:1: ERROR: Redeclarations of `fn C` must match use of `extern`.
|
|
|
+// CHECK:STDERR: extern fn C(c: (i32,)) -> {.c: i32};
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR: fail_redecl_api.carbon:[[@LINE-27]]:1: In import.
|
|
|
+// CHECK:STDERR: import library "api";
|
|
|
+// CHECK:STDERR: ^~~~~~
|
|
|
+// CHECK:STDERR: api.carbon:6:1: Previously declared here.
|
|
|
+// CHECK:STDERR: fn C(c: (i32,)) -> {.c: i32};
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR:
|
|
|
extern fn C(c: (i32,)) -> {.c: i32};
|
|
|
+// CHECK:STDERR: fail_redecl_api.carbon:[[@LINE+10]]:1: ERROR: Redeclaration of `fn D` is redundant.
|
|
|
+// CHECK:STDERR: extern fn D();
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR: fail_redecl_api.carbon:[[@LINE-38]]:1: In import.
|
|
|
+// CHECK:STDERR: import library "api";
|
|
|
+// CHECK:STDERR: ^~~~~~
|
|
|
+// CHECK:STDERR: api.carbon:7:1: Previously declared here.
|
|
|
+// CHECK:STDERR: extern fn D();
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR:
|
|
|
extern fn D();
|
|
|
+// CHECK:STDERR: fail_redecl_api.carbon:[[@LINE+10]]:1: ERROR: Redeclarations of `fn E` must match use of `extern`.
|
|
|
+// CHECK:STDERR: extern fn NS.E();
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR: fail_redecl_api.carbon:[[@LINE-49]]:1: In import.
|
|
|
+// CHECK:STDERR: import library "api";
|
|
|
+// CHECK:STDERR: ^~~~~~
|
|
|
+// CHECK:STDERR: api.carbon:10:1: Previously declared here.
|
|
|
+// CHECK:STDERR: fn NS.E();
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~
|
|
|
+// CHECK:STDERR:
|
|
|
extern fn NS.E();
|
|
|
|
|
|
var a: () = A();
|
|
|
@@ -88,69 +138,69 @@ var c: {.c: i32} = C((1,));
|
|
|
var d: () = D();
|
|
|
var e: () = NS.E();
|
|
|
|
|
|
-// --- fail_todo_merge.carbon
|
|
|
+// --- fail_merge.carbon
|
|
|
|
|
|
library "merge";
|
|
|
|
|
|
-// CHECK:STDERR: fail_todo_merge.carbon:[[@LINE+65]]:1: In import.
|
|
|
+// CHECK:STDERR: fail_merge.carbon:[[@LINE+65]]:1: In import.
|
|
|
// CHECK:STDERR: import library "api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: extern_api.carbon:4:1: ERROR: Duplicate name being declared in the same scope.
|
|
|
-// CHECK:STDERR: extern fn A();
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR: fail_todo_merge.carbon:[[@LINE+59]]:1: In import.
|
|
|
+// CHECK:STDERR: extern library "redecl_extern_api" fn A();
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR: fail_merge.carbon:[[@LINE+59]]:1: In import.
|
|
|
// CHECK:STDERR: import library "api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: api.carbon:4:1: Name is previously declared here.
|
|
|
// CHECK:STDERR: fn A();
|
|
|
// CHECK:STDERR: ^~~~~~~
|
|
|
// CHECK:STDERR:
|
|
|
-// CHECK:STDERR: fail_todo_merge.carbon:[[@LINE+52]]:1: In import.
|
|
|
+// CHECK:STDERR: fail_merge.carbon:[[@LINE+52]]:1: In import.
|
|
|
// CHECK:STDERR: import library "api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: extern_api.carbon:5:1: ERROR: Duplicate name being declared in the same scope.
|
|
|
-// CHECK:STDERR: extern fn B(b: i32) -> i32;
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR: fail_todo_merge.carbon:[[@LINE+46]]:1: In import.
|
|
|
+// CHECK:STDERR: extern library "redecl_extern_api" fn B(b: i32) -> i32;
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR: fail_merge.carbon:[[@LINE+46]]:1: In import.
|
|
|
// CHECK:STDERR: import library "api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: api.carbon:5:1: Name is previously declared here.
|
|
|
// CHECK:STDERR: fn B(b: i32) -> i32;
|
|
|
// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~
|
|
|
// CHECK:STDERR:
|
|
|
-// CHECK:STDERR: fail_todo_merge.carbon:[[@LINE+39]]:1: In import.
|
|
|
+// CHECK:STDERR: fail_merge.carbon:[[@LINE+39]]:1: In import.
|
|
|
// CHECK:STDERR: import library "api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: extern_api.carbon:6:1: ERROR: Duplicate name being declared in the same scope.
|
|
|
-// CHECK:STDERR: extern fn C(c: (i32,)) -> {.c: i32};
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR: fail_todo_merge.carbon:[[@LINE+33]]:1: In import.
|
|
|
+// CHECK:STDERR: extern library "redecl_extern_api" fn C(c: (i32,)) -> {.c: i32};
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR: fail_merge.carbon:[[@LINE+33]]:1: In import.
|
|
|
// CHECK:STDERR: import library "api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: api.carbon:6:1: Name is previously declared here.
|
|
|
// CHECK:STDERR: fn C(c: (i32,)) -> {.c: i32};
|
|
|
// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
// CHECK:STDERR:
|
|
|
-// CHECK:STDERR: fail_todo_merge.carbon:[[@LINE+26]]:1: In import.
|
|
|
+// CHECK:STDERR: fail_merge.carbon:[[@LINE+26]]:1: In import.
|
|
|
// CHECK:STDERR: import library "api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: extern_api.carbon:7:1: ERROR: Duplicate name being declared in the same scope.
|
|
|
-// CHECK:STDERR: extern fn D();
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR: fail_todo_merge.carbon:[[@LINE+20]]:1: In import.
|
|
|
+// CHECK:STDERR: extern library "redecl_extern_api" fn D();
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR: fail_merge.carbon:[[@LINE+20]]:1: In import.
|
|
|
// CHECK:STDERR: import library "api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: api.carbon:7:1: Name is previously declared here.
|
|
|
// CHECK:STDERR: extern fn D();
|
|
|
// CHECK:STDERR: ^~~~~~~~~~~~~~
|
|
|
// CHECK:STDERR:
|
|
|
-// CHECK:STDERR: fail_todo_merge.carbon:[[@LINE+13]]:1: In import.
|
|
|
+// CHECK:STDERR: fail_merge.carbon:[[@LINE+13]]:1: In import.
|
|
|
// CHECK:STDERR: import library "api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: extern_api.carbon:10:1: ERROR: Duplicate name being declared in the same scope.
|
|
|
-// CHECK:STDERR: extern fn NS.E();
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR: fail_todo_merge.carbon:[[@LINE+7]]:1: In import.
|
|
|
+// CHECK:STDERR: extern library "redecl_extern_api" fn NS.E();
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR: fail_merge.carbon:[[@LINE+7]]:1: In import.
|
|
|
// CHECK:STDERR: import library "api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: api.carbon:10:1: Name is previously declared here.
|
|
|
@@ -166,75 +216,74 @@ var c: {.c: i32} = C((1,));
|
|
|
var d: () = D();
|
|
|
var e: () = NS.E();
|
|
|
|
|
|
-// --- fail_todo_merge_reverse.carbon
|
|
|
+// --- fail_merge_reverse.carbon
|
|
|
|
|
|
library "merge_reverse";
|
|
|
|
|
|
-// CHECK:STDERR: fail_todo_merge_reverse.carbon:[[@LINE+65]]:1: In import.
|
|
|
+// CHECK:STDERR: fail_merge_reverse.carbon:[[@LINE+64]]:1: In import.
|
|
|
// CHECK:STDERR: import library "extern_api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: api.carbon:4:1: ERROR: Duplicate name being declared in the same scope.
|
|
|
// CHECK:STDERR: fn A();
|
|
|
// CHECK:STDERR: ^~~~~~~
|
|
|
-// CHECK:STDERR: fail_todo_merge_reverse.carbon:[[@LINE+59]]:1: In import.
|
|
|
+// CHECK:STDERR: fail_merge_reverse.carbon:[[@LINE+58]]:1: In import.
|
|
|
// CHECK:STDERR: import library "extern_api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: extern_api.carbon:4:1: Name is previously declared here.
|
|
|
-// CHECK:STDERR: extern fn A();
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR: extern library "redecl_extern_api" fn A();
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
// CHECK:STDERR:
|
|
|
-// CHECK:STDERR: fail_todo_merge_reverse.carbon:[[@LINE+52]]:1: In import.
|
|
|
+// CHECK:STDERR: fail_merge_reverse.carbon:[[@LINE+51]]:1: In import.
|
|
|
// CHECK:STDERR: import library "extern_api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: api.carbon:5:1: ERROR: Duplicate name being declared in the same scope.
|
|
|
// CHECK:STDERR: fn B(b: i32) -> i32;
|
|
|
// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR: fail_todo_merge_reverse.carbon:[[@LINE+46]]:1: In import.
|
|
|
+// CHECK:STDERR: fail_merge_reverse.carbon:[[@LINE+45]]:1: In import.
|
|
|
// CHECK:STDERR: import library "extern_api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: extern_api.carbon:5:1: Name is previously declared here.
|
|
|
-// CHECK:STDERR: extern fn B(b: i32) -> i32;
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR: extern library "redecl_extern_api" fn B(b: i32) -> i32;
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
// CHECK:STDERR:
|
|
|
-// CHECK:STDERR: fail_todo_merge_reverse.carbon:[[@LINE+39]]:1: In import.
|
|
|
+// CHECK:STDERR: fail_merge_reverse.carbon:[[@LINE+38]]:1: In import.
|
|
|
// CHECK:STDERR: import library "extern_api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: api.carbon:6:1: ERROR: Duplicate name being declared in the same scope.
|
|
|
// CHECK:STDERR: fn C(c: (i32,)) -> {.c: i32};
|
|
|
// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR: fail_todo_merge_reverse.carbon:[[@LINE+33]]:1: In import.
|
|
|
+// CHECK:STDERR: fail_merge_reverse.carbon:[[@LINE+32]]:1: In import.
|
|
|
// CHECK:STDERR: import library "extern_api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: extern_api.carbon:6:1: Name is previously declared here.
|
|
|
-// CHECK:STDERR: extern fn C(c: (i32,)) -> {.c: i32};
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR: extern library "redecl_extern_api" fn C(c: (i32,)) -> {.c: i32};
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
// CHECK:STDERR:
|
|
|
-// CHECK:STDERR: fail_todo_merge_reverse.carbon:[[@LINE+26]]:1: In import.
|
|
|
+// CHECK:STDERR: fail_merge_reverse.carbon:[[@LINE+25]]:1: In import.
|
|
|
// CHECK:STDERR: import library "extern_api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: api.carbon:7:1: ERROR: Duplicate name being declared in the same scope.
|
|
|
// CHECK:STDERR: extern fn D();
|
|
|
// CHECK:STDERR: ^~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR: fail_todo_merge_reverse.carbon:[[@LINE+20]]:1: In import.
|
|
|
+// CHECK:STDERR: fail_merge_reverse.carbon:[[@LINE+19]]:1: In import.
|
|
|
// CHECK:STDERR: import library "extern_api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: extern_api.carbon:7:1: Name is previously declared here.
|
|
|
-// CHECK:STDERR: extern fn D();
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~
|
|
|
+// CHECK:STDERR: extern library "redecl_extern_api" fn D();
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
// CHECK:STDERR:
|
|
|
-// CHECK:STDERR: fail_todo_merge_reverse.carbon:[[@LINE+13]]:1: In import.
|
|
|
+// CHECK:STDERR: fail_merge_reverse.carbon:[[@LINE+12]]:1: In import.
|
|
|
// CHECK:STDERR: import library "extern_api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: api.carbon:10:1: ERROR: Duplicate name being declared in the same scope.
|
|
|
// CHECK:STDERR: fn NS.E();
|
|
|
// CHECK:STDERR: ^~~~~~~~~~
|
|
|
-// CHECK:STDERR: fail_todo_merge_reverse.carbon:[[@LINE+7]]:1: In import.
|
|
|
+// CHECK:STDERR: fail_merge_reverse.carbon:[[@LINE+6]]:1: In import.
|
|
|
// CHECK:STDERR: import library "extern_api";
|
|
|
// CHECK:STDERR: ^~~~~~
|
|
|
// CHECK:STDERR: extern_api.carbon:10:1: Name is previously declared here.
|
|
|
-// CHECK:STDERR: extern fn NS.E();
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR:
|
|
|
+// CHECK:STDERR: extern library "redecl_extern_api" fn NS.E();
|
|
|
+// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
import library "extern_api";
|
|
|
import library "api";
|
|
|
|
|
|
@@ -244,46 +293,6 @@ var c: {.c: i32} = C((1,));
|
|
|
var d: () = D();
|
|
|
var e: () = NS.E();
|
|
|
|
|
|
-// --- decl_after_use.carbon
|
|
|
-
|
|
|
-library "decl_after_use";
|
|
|
-
|
|
|
-import library "extern_api";
|
|
|
-
|
|
|
-var a: () = A();
|
|
|
-
|
|
|
-fn A();
|
|
|
-
|
|
|
-// --- fail_redecl_mismatch_after_use.carbon
|
|
|
-
|
|
|
-library "redecl_mismatch_after_use";
|
|
|
-
|
|
|
-import library "extern_api";
|
|
|
-
|
|
|
-var a: () = A();
|
|
|
-
|
|
|
-// CHECK:STDERR: fail_redecl_mismatch_after_use.carbon:[[@LINE+10]]:1: ERROR: Function redeclaration differs because return type is `i32`.
|
|
|
-// CHECK:STDERR: fn A() -> i32;
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR: fail_redecl_mismatch_after_use.carbon:[[@LINE-7]]:1: In import.
|
|
|
-// CHECK:STDERR: import library "extern_api";
|
|
|
-// CHECK:STDERR: ^~~~~~
|
|
|
-// CHECK:STDERR: extern_api.carbon:4:1: Previously declared with no return type.
|
|
|
-// CHECK:STDERR: extern fn A();
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR:
|
|
|
-fn A() -> i32;
|
|
|
-
|
|
|
-// --- todo_fail_extern_after_use.carbon
|
|
|
-
|
|
|
-library "extern_after_use";
|
|
|
-
|
|
|
-import library "api";
|
|
|
-
|
|
|
-var a: () = A();
|
|
|
-
|
|
|
-extern fn A();
|
|
|
-
|
|
|
// --- unloaded.carbon
|
|
|
|
|
|
library "unloaded";
|
|
|
@@ -296,77 +305,6 @@ library "unloaded_extern";
|
|
|
|
|
|
import library "extern_api";
|
|
|
|
|
|
-// --- fail_todo_loaded_merge.carbon
|
|
|
-
|
|
|
-library "loaded_merge";
|
|
|
-
|
|
|
-// CHECK:STDERR: fail_todo_loaded_merge.carbon:[[@LINE+64]]:1: In import.
|
|
|
-// CHECK:STDERR: import library "api";
|
|
|
-// CHECK:STDERR: ^~~~~~
|
|
|
-// CHECK:STDERR: extern_api.carbon:4:1: ERROR: Duplicate name being declared in the same scope.
|
|
|
-// CHECK:STDERR: extern fn A();
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR: fail_todo_loaded_merge.carbon:[[@LINE+58]]:1: In import.
|
|
|
-// CHECK:STDERR: import library "api";
|
|
|
-// CHECK:STDERR: ^~~~~~
|
|
|
-// CHECK:STDERR: api.carbon:4:1: Name is previously declared here.
|
|
|
-// CHECK:STDERR: fn A();
|
|
|
-// CHECK:STDERR: ^~~~~~~
|
|
|
-// CHECK:STDERR:
|
|
|
-// CHECK:STDERR: fail_todo_loaded_merge.carbon:[[@LINE+51]]:1: In import.
|
|
|
-// CHECK:STDERR: import library "api";
|
|
|
-// CHECK:STDERR: ^~~~~~
|
|
|
-// CHECK:STDERR: extern_api.carbon:5:1: ERROR: Duplicate name being declared in the same scope.
|
|
|
-// CHECK:STDERR: extern fn B(b: i32) -> i32;
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR: fail_todo_loaded_merge.carbon:[[@LINE+45]]:1: In import.
|
|
|
-// CHECK:STDERR: import library "api";
|
|
|
-// CHECK:STDERR: ^~~~~~
|
|
|
-// CHECK:STDERR: api.carbon:5:1: Name is previously declared here.
|
|
|
-// CHECK:STDERR: fn B(b: i32) -> i32;
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR:
|
|
|
-// CHECK:STDERR: fail_todo_loaded_merge.carbon:[[@LINE+38]]:1: In import.
|
|
|
-// CHECK:STDERR: import library "api";
|
|
|
-// CHECK:STDERR: ^~~~~~
|
|
|
-// CHECK:STDERR: extern_api.carbon:6:1: ERROR: Duplicate name being declared in the same scope.
|
|
|
-// CHECK:STDERR: extern fn C(c: (i32,)) -> {.c: i32};
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR: fail_todo_loaded_merge.carbon:[[@LINE+32]]:1: In import.
|
|
|
-// CHECK:STDERR: import library "api";
|
|
|
-// CHECK:STDERR: ^~~~~~
|
|
|
-// CHECK:STDERR: api.carbon:6:1: Name is previously declared here.
|
|
|
-// CHECK:STDERR: fn C(c: (i32,)) -> {.c: i32};
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR:
|
|
|
-// CHECK:STDERR: fail_todo_loaded_merge.carbon:[[@LINE+25]]:1: In import.
|
|
|
-// CHECK:STDERR: import library "api";
|
|
|
-// CHECK:STDERR: ^~~~~~
|
|
|
-// CHECK:STDERR: extern_api.carbon:7:1: ERROR: Duplicate name being declared in the same scope.
|
|
|
-// CHECK:STDERR: extern fn D();
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR: fail_todo_loaded_merge.carbon:[[@LINE+19]]:1: In import.
|
|
|
-// CHECK:STDERR: import library "api";
|
|
|
-// CHECK:STDERR: ^~~~~~
|
|
|
-// CHECK:STDERR: api.carbon:7:1: Name is previously declared here.
|
|
|
-// CHECK:STDERR: extern fn D();
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR:
|
|
|
-// CHECK:STDERR: fail_todo_loaded_merge.carbon:[[@LINE+12]]:1: In import.
|
|
|
-// CHECK:STDERR: import library "api";
|
|
|
-// CHECK:STDERR: ^~~~~~
|
|
|
-// CHECK:STDERR: extern_api.carbon:10:1: ERROR: Duplicate name being declared in the same scope.
|
|
|
-// CHECK:STDERR: extern fn NS.E();
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~~~~~~~~
|
|
|
-// CHECK:STDERR: fail_todo_loaded_merge.carbon:[[@LINE+6]]:1: In import.
|
|
|
-// CHECK:STDERR: import library "api";
|
|
|
-// CHECK:STDERR: ^~~~~~
|
|
|
-// CHECK:STDERR: api.carbon:10:1: Name is previously declared here.
|
|
|
-// CHECK:STDERR: fn NS.E();
|
|
|
-// CHECK:STDERR: ^~~~~~~~~~
|
|
|
-import library "api";
|
|
|
-import library "extern_api";
|
|
|
-
|
|
|
// CHECK:STDOUT: --- api.carbon
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constants {
|
|
|
@@ -504,28 +442,28 @@ import library "extern_api";
|
|
|
// CHECK:STDOUT: %Core.import = import Core
|
|
|
// CHECK:STDOUT: %A.decl: %A.type = fn_decl @A [template = constants.%A] {}
|
|
|
// CHECK:STDOUT: %B.decl: %B.type = fn_decl @B [template = constants.%B] {
|
|
|
-// CHECK:STDOUT: %int.make_type_32.loc5_16: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc5_16.1: type = value_of_initializer %int.make_type_32.loc5_16 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc5_16.2: type = converted %int.make_type_32.loc5_16, %.loc5_16.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %b.loc5_13.1: i32 = param b
|
|
|
-// CHECK:STDOUT: @B.%b: i32 = bind_name b, %b.loc5_13.1
|
|
|
-// CHECK:STDOUT: %int.make_type_32.loc5_24: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc5_24.1: type = value_of_initializer %int.make_type_32.loc5_24 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc5_24.2: type = converted %int.make_type_32.loc5_24, %.loc5_24.1 [template = i32]
|
|
|
+// CHECK:STDOUT: %int.make_type_32.loc5_44: init type = call constants.%Int32() [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc5_44.1: type = value_of_initializer %int.make_type_32.loc5_44 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc5_44.2: type = converted %int.make_type_32.loc5_44, %.loc5_44.1 [template = i32]
|
|
|
+// CHECK:STDOUT: %b.loc5_41.1: i32 = param b
|
|
|
+// CHECK:STDOUT: @B.%b: i32 = bind_name b, %b.loc5_41.1
|
|
|
+// CHECK:STDOUT: %int.make_type_32.loc5_52: init type = call constants.%Int32() [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc5_52.1: type = value_of_initializer %int.make_type_32.loc5_52 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc5_52.2: type = converted %int.make_type_32.loc5_52, %.loc5_52.1 [template = i32]
|
|
|
// CHECK:STDOUT: @B.%return: ref i32 = var <return slot>
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %C.decl: %C.type = fn_decl @C [template = constants.%C] {
|
|
|
-// CHECK:STDOUT: %int.make_type_32.loc6_17: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc6_21.1: %.2 = tuple_literal (%int.make_type_32.loc6_17)
|
|
|
-// CHECK:STDOUT: %.loc6_21.2: type = value_of_initializer %int.make_type_32.loc6_17 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc6_21.3: type = converted %int.make_type_32.loc6_17, %.loc6_21.2 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc6_21.4: type = converted %.loc6_21.1, constants.%.3 [template = constants.%.3]
|
|
|
-// CHECK:STDOUT: %c.loc6_13.1: %.3 = param c
|
|
|
-// CHECK:STDOUT: @C.%c: %.3 = bind_name c, %c.loc6_13.1
|
|
|
-// CHECK:STDOUT: %int.make_type_32.loc6_32: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc6_32.1: type = value_of_initializer %int.make_type_32.loc6_32 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc6_32.2: type = converted %int.make_type_32.loc6_32, %.loc6_32.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc6_35: type = struct_type {.c: i32} [template = constants.%.4]
|
|
|
+// CHECK:STDOUT: %int.make_type_32.loc6_45: init type = call constants.%Int32() [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc6_49.1: %.2 = tuple_literal (%int.make_type_32.loc6_45)
|
|
|
+// CHECK:STDOUT: %.loc6_49.2: type = value_of_initializer %int.make_type_32.loc6_45 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc6_49.3: type = converted %int.make_type_32.loc6_45, %.loc6_49.2 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc6_49.4: type = converted %.loc6_49.1, constants.%.3 [template = constants.%.3]
|
|
|
+// CHECK:STDOUT: %c.loc6_41.1: %.3 = param c
|
|
|
+// CHECK:STDOUT: @C.%c: %.3 = bind_name c, %c.loc6_41.1
|
|
|
+// CHECK:STDOUT: %int.make_type_32.loc6_60: init type = call constants.%Int32() [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc6_60.1: type = value_of_initializer %int.make_type_32.loc6_60 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc6_60.2: type = converted %int.make_type_32.loc6_60, %.loc6_60.1 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc6_63: type = struct_type {.c: i32} [template = constants.%.4]
|
|
|
// CHECK:STDOUT: @C.%return: ref %.4 = var <return slot>
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %D.decl: %D.type = fn_decl @D [template = constants.%D] {}
|
|
|
@@ -671,7 +609,7 @@ import library "extern_api";
|
|
|
// CHECK:STDOUT: return
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: --- redecl_api.carbon
|
|
|
+// CHECK:STDOUT: --- fail_redecl_api.carbon
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constants {
|
|
|
// CHECK:STDOUT: %A.type: type = fn_type @A [template]
|
|
|
@@ -726,8 +664,8 @@ import library "extern_api";
|
|
|
// CHECK:STDOUT: .NS = imports.%NS
|
|
|
// CHECK:STDOUT: .Core = imports.%Core
|
|
|
// CHECK:STDOUT: .a = %a
|
|
|
-// CHECK:STDOUT: .b = %b.loc13
|
|
|
-// CHECK:STDOUT: .c = %c.loc14
|
|
|
+// CHECK:STDOUT: .b = %b.loc63
|
|
|
+// CHECK:STDOUT: .c = %c.loc64
|
|
|
// CHECK:STDOUT: .d = %d
|
|
|
// CHECK:STDOUT: .e = %e
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -735,53 +673,53 @@ import library "extern_api";
|
|
|
// CHECK:STDOUT: %default.import = import <invalid>
|
|
|
// CHECK:STDOUT: %A.decl: %A.type = fn_decl @A [template = constants.%A] {}
|
|
|
// CHECK:STDOUT: %B.decl: %B.type = fn_decl @B [template = constants.%B] {
|
|
|
-// CHECK:STDOUT: %int.make_type_32.loc7_16: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc7_16.1: type = value_of_initializer %int.make_type_32.loc7_16 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc7_16.2: type = converted %int.make_type_32.loc7_16, %.loc7_16.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %b.loc7_13.1: i32 = param b
|
|
|
-// CHECK:STDOUT: %b.loc7_13.2: i32 = bind_name b, %b.loc7_13.1
|
|
|
-// CHECK:STDOUT: %int.make_type_32.loc7_24: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc7_24.1: type = value_of_initializer %int.make_type_32.loc7_24 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc7_24.2: type = converted %int.make_type_32.loc7_24, %.loc7_24.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %return.var.loc7: ref i32 = var <return slot>
|
|
|
+// CHECK:STDOUT: %int.make_type_32.loc27_16: init type = call constants.%Int32() [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc27_16.1: type = value_of_initializer %int.make_type_32.loc27_16 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc27_16.2: type = converted %int.make_type_32.loc27_16, %.loc27_16.1 [template = i32]
|
|
|
+// CHECK:STDOUT: %b.loc27_13.1: i32 = param b
|
|
|
+// CHECK:STDOUT: %b.loc27_13.2: i32 = bind_name b, %b.loc27_13.1
|
|
|
+// CHECK:STDOUT: %int.make_type_32.loc27_24: init type = call constants.%Int32() [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc27_24.1: type = value_of_initializer %int.make_type_32.loc27_24 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc27_24.2: type = converted %int.make_type_32.loc27_24, %.loc27_24.1 [template = i32]
|
|
|
+// CHECK:STDOUT: %return.var.loc27: ref i32 = var <return slot>
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %C.decl: %C.type = fn_decl @C [template = constants.%C] {
|
|
|
-// CHECK:STDOUT: %int.make_type_32.loc8_17: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc8_21.1: %.2 = tuple_literal (%int.make_type_32.loc8_17)
|
|
|
-// CHECK:STDOUT: %.loc8_21.2: type = value_of_initializer %int.make_type_32.loc8_17 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc8_21.3: type = converted %int.make_type_32.loc8_17, %.loc8_21.2 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc8_21.4: type = converted %.loc8_21.1, constants.%.3 [template = constants.%.3]
|
|
|
-// CHECK:STDOUT: %c.loc8_13.1: %.3 = param c
|
|
|
-// CHECK:STDOUT: %c.loc8_13.2: %.3 = bind_name c, %c.loc8_13.1
|
|
|
-// CHECK:STDOUT: %int.make_type_32.loc8_32: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc8_32.1: type = value_of_initializer %int.make_type_32.loc8_32 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc8_32.2: type = converted %int.make_type_32.loc8_32, %.loc8_32.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc8_35: type = struct_type {.c: i32} [template = constants.%.4]
|
|
|
-// CHECK:STDOUT: %return.var.loc8: ref %.4 = var <return slot>
|
|
|
+// CHECK:STDOUT: %int.make_type_32.loc38_17: init type = call constants.%Int32() [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc38_21.1: %.2 = tuple_literal (%int.make_type_32.loc38_17)
|
|
|
+// CHECK:STDOUT: %.loc38_21.2: type = value_of_initializer %int.make_type_32.loc38_17 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc38_21.3: type = converted %int.make_type_32.loc38_17, %.loc38_21.2 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc38_21.4: type = converted %.loc38_21.1, constants.%.3 [template = constants.%.3]
|
|
|
+// CHECK:STDOUT: %c.loc38_13.1: %.3 = param c
|
|
|
+// CHECK:STDOUT: %c.loc38_13.2: %.3 = bind_name c, %c.loc38_13.1
|
|
|
+// CHECK:STDOUT: %int.make_type_32.loc38_32: init type = call constants.%Int32() [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc38_32.1: type = value_of_initializer %int.make_type_32.loc38_32 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc38_32.2: type = converted %int.make_type_32.loc38_32, %.loc38_32.1 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc38_35: type = struct_type {.c: i32} [template = constants.%.4]
|
|
|
+// CHECK:STDOUT: %return.var.loc38: ref %.4 = var <return slot>
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %D.decl: %D.type = fn_decl @D [template = constants.%D] {}
|
|
|
// CHECK:STDOUT: %E.decl: %E.type = fn_decl @E [template = constants.%E] {}
|
|
|
-// CHECK:STDOUT: %.loc12_9.1: %.1 = tuple_literal ()
|
|
|
-// CHECK:STDOUT: %.loc12_9.2: type = converted %.loc12_9.1, constants.%.1 [template = constants.%.1]
|
|
|
+// CHECK:STDOUT: %.loc62_9.1: %.1 = tuple_literal ()
|
|
|
+// CHECK:STDOUT: %.loc62_9.2: type = converted %.loc62_9.1, constants.%.1 [template = constants.%.1]
|
|
|
// CHECK:STDOUT: %a.var: ref %.1 = var a
|
|
|
// CHECK:STDOUT: %a: ref %.1 = bind_name a, %a.var
|
|
|
-// CHECK:STDOUT: %int.make_type_32.loc13: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc13_8.1: type = value_of_initializer %int.make_type_32.loc13 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc13_8.2: type = converted %int.make_type_32.loc13, %.loc13_8.1 [template = i32]
|
|
|
+// CHECK:STDOUT: %int.make_type_32.loc63: init type = call constants.%Int32() [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc63_8.1: type = value_of_initializer %int.make_type_32.loc63 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc63_8.2: type = converted %int.make_type_32.loc63, %.loc63_8.1 [template = i32]
|
|
|
// CHECK:STDOUT: %b.var: ref i32 = var b
|
|
|
-// CHECK:STDOUT: %b.loc13: ref i32 = bind_name b, %b.var
|
|
|
-// CHECK:STDOUT: %int.make_type_32.loc14: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc14_13.1: type = value_of_initializer %int.make_type_32.loc14 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc14_13.2: type = converted %int.make_type_32.loc14, %.loc14_13.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc14_16: type = struct_type {.c: i32} [template = constants.%.4]
|
|
|
+// CHECK:STDOUT: %b.loc63: ref i32 = bind_name b, %b.var
|
|
|
+// CHECK:STDOUT: %int.make_type_32.loc64: init type = call constants.%Int32() [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc64_13.1: type = value_of_initializer %int.make_type_32.loc64 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc64_13.2: type = converted %int.make_type_32.loc64, %.loc64_13.1 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc64_16: type = struct_type {.c: i32} [template = constants.%.4]
|
|
|
// CHECK:STDOUT: %c.var: ref %.4 = var c
|
|
|
-// CHECK:STDOUT: %c.loc14: ref %.4 = bind_name c, %c.var
|
|
|
-// CHECK:STDOUT: %.loc15_9.1: %.1 = tuple_literal ()
|
|
|
-// CHECK:STDOUT: %.loc15_9.2: type = converted %.loc15_9.1, constants.%.1 [template = constants.%.1]
|
|
|
+// CHECK:STDOUT: %c.loc64: ref %.4 = bind_name c, %c.var
|
|
|
+// CHECK:STDOUT: %.loc65_9.1: %.1 = tuple_literal ()
|
|
|
+// CHECK:STDOUT: %.loc65_9.2: type = converted %.loc65_9.1, constants.%.1 [template = constants.%.1]
|
|
|
// CHECK:STDOUT: %d.var: ref %.1 = var d
|
|
|
// CHECK:STDOUT: %d: ref %.1 = bind_name d, %d.var
|
|
|
-// CHECK:STDOUT: %.loc16_9.1: %.1 = tuple_literal ()
|
|
|
-// CHECK:STDOUT: %.loc16_9.2: type = converted %.loc16_9.1, constants.%.1 [template = constants.%.1]
|
|
|
+// CHECK:STDOUT: %.loc66_9.1: %.1 = tuple_literal ()
|
|
|
+// CHECK:STDOUT: %.loc66_9.2: type = converted %.loc66_9.1, constants.%.1 [template = constants.%.1]
|
|
|
// CHECK:STDOUT: %e.var: ref %.1 = var e
|
|
|
// CHECK:STDOUT: %e: ref %.1 = bind_name e, %e.var
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -804,15 +742,15 @@ import library "extern_api";
|
|
|
// CHECK:STDOUT: %A.call: init %.1 = call %A.ref()
|
|
|
// CHECK:STDOUT: assign file.%a.var, %A.call
|
|
|
// CHECK:STDOUT: %B.ref: %B.type = name_ref B, file.%B.decl [template = constants.%B]
|
|
|
-// CHECK:STDOUT: %.loc13: i32 = int_literal 1 [template = constants.%.5]
|
|
|
-// CHECK:STDOUT: %B.call: init i32 = call %B.ref(%.loc13)
|
|
|
+// CHECK:STDOUT: %.loc63: i32 = int_literal 1 [template = constants.%.5]
|
|
|
+// CHECK:STDOUT: %B.call: init i32 = call %B.ref(%.loc63)
|
|
|
// CHECK:STDOUT: assign file.%b.var, %B.call
|
|
|
// CHECK:STDOUT: %C.ref: %C.type = name_ref C, file.%C.decl [template = constants.%C]
|
|
|
-// CHECK:STDOUT: %.loc14_23: i32 = int_literal 1 [template = constants.%.5]
|
|
|
-// CHECK:STDOUT: %.loc14_25: %.3 = tuple_literal (%.loc14_23)
|
|
|
-// CHECK:STDOUT: %tuple: %.3 = tuple_value (%.loc14_23) [template = constants.%tuple]
|
|
|
-// CHECK:STDOUT: %.loc14_21: %.3 = converted %.loc14_25, %tuple [template = constants.%tuple]
|
|
|
-// CHECK:STDOUT: %C.call: init %.4 = call %C.ref(%.loc14_21)
|
|
|
+// CHECK:STDOUT: %.loc64_23: i32 = int_literal 1 [template = constants.%.5]
|
|
|
+// CHECK:STDOUT: %.loc64_25: %.3 = tuple_literal (%.loc64_23)
|
|
|
+// CHECK:STDOUT: %tuple: %.3 = tuple_value (%.loc64_23) [template = constants.%tuple]
|
|
|
+// CHECK:STDOUT: %.loc64_21: %.3 = converted %.loc64_25, %tuple [template = constants.%tuple]
|
|
|
+// CHECK:STDOUT: %C.call: init %.4 = call %C.ref(%.loc64_21)
|
|
|
// CHECK:STDOUT: assign file.%c.var, %C.call
|
|
|
// CHECK:STDOUT: %D.ref: %D.type = name_ref D, file.%D.decl [template = constants.%D]
|
|
|
// CHECK:STDOUT: %D.call: init %.1 = call %D.ref()
|
|
|
@@ -977,7 +915,7 @@ import library "extern_api";
|
|
|
// CHECK:STDOUT: return
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: --- fail_todo_merge.carbon
|
|
|
+// CHECK:STDOUT: --- fail_merge.carbon
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constants {
|
|
|
// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
|
|
@@ -1106,7 +1044,7 @@ import library "extern_api";
|
|
|
// CHECK:STDOUT: return
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: --- fail_todo_merge_reverse.carbon
|
|
|
+// CHECK:STDOUT: --- fail_merge_reverse.carbon
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constants {
|
|
|
// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
|
|
@@ -1172,27 +1110,27 @@ import library "extern_api";
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: %Core.import = import Core
|
|
|
// CHECK:STDOUT: %default.import = import <invalid>
|
|
|
-// CHECK:STDOUT: %.loc72_9.1: %.1 = tuple_literal ()
|
|
|
-// CHECK:STDOUT: %.loc72_9.2: type = converted %.loc72_9.1, constants.%.1 [template = constants.%.1]
|
|
|
+// CHECK:STDOUT: %.loc71_9.1: %.1 = tuple_literal ()
|
|
|
+// CHECK:STDOUT: %.loc71_9.2: type = converted %.loc71_9.1, constants.%.1 [template = constants.%.1]
|
|
|
// CHECK:STDOUT: %a.var: ref %.1 = var a
|
|
|
// CHECK:STDOUT: %a: ref %.1 = bind_name a, %a.var
|
|
|
-// CHECK:STDOUT: %int.make_type_32.loc73: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc73_8.1: type = value_of_initializer %int.make_type_32.loc73 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc73_8.2: type = converted %int.make_type_32.loc73, %.loc73_8.1 [template = i32]
|
|
|
+// CHECK:STDOUT: %int.make_type_32.loc72: init type = call constants.%Int32() [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc72_8.1: type = value_of_initializer %int.make_type_32.loc72 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc72_8.2: type = converted %int.make_type_32.loc72, %.loc72_8.1 [template = i32]
|
|
|
// CHECK:STDOUT: %b.var: ref i32 = var b
|
|
|
// CHECK:STDOUT: %b: ref i32 = bind_name b, %b.var
|
|
|
-// CHECK:STDOUT: %int.make_type_32.loc74: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc74_13.1: type = value_of_initializer %int.make_type_32.loc74 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc74_13.2: type = converted %int.make_type_32.loc74, %.loc74_13.1 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc74_16: type = struct_type {.c: i32} [template = constants.%.3]
|
|
|
+// CHECK:STDOUT: %int.make_type_32.loc73: init type = call constants.%Int32() [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc73_13.1: type = value_of_initializer %int.make_type_32.loc73 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc73_13.2: type = converted %int.make_type_32.loc73, %.loc73_13.1 [template = i32]
|
|
|
+// CHECK:STDOUT: %.loc73_16: type = struct_type {.c: i32} [template = constants.%.3]
|
|
|
// CHECK:STDOUT: %c.var: ref %.3 = var c
|
|
|
// CHECK:STDOUT: %c: ref %.3 = bind_name c, %c.var
|
|
|
-// CHECK:STDOUT: %.loc75_9.1: %.1 = tuple_literal ()
|
|
|
-// CHECK:STDOUT: %.loc75_9.2: type = converted %.loc75_9.1, constants.%.1 [template = constants.%.1]
|
|
|
+// CHECK:STDOUT: %.loc74_9.1: %.1 = tuple_literal ()
|
|
|
+// CHECK:STDOUT: %.loc74_9.2: type = converted %.loc74_9.1, constants.%.1 [template = constants.%.1]
|
|
|
// CHECK:STDOUT: %d.var: ref %.1 = var d
|
|
|
// CHECK:STDOUT: %d: ref %.1 = bind_name d, %d.var
|
|
|
-// CHECK:STDOUT: %.loc76_9.1: %.1 = tuple_literal ()
|
|
|
-// CHECK:STDOUT: %.loc76_9.2: type = converted %.loc76_9.1, constants.%.1 [template = constants.%.1]
|
|
|
+// CHECK:STDOUT: %.loc75_9.1: %.1 = tuple_literal ()
|
|
|
+// CHECK:STDOUT: %.loc75_9.2: type = converted %.loc75_9.1, constants.%.1 [template = constants.%.1]
|
|
|
// CHECK:STDOUT: %e.var: ref %.1 = var e
|
|
|
// CHECK:STDOUT: %e: ref %.1 = bind_name e, %e.var
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -1215,15 +1153,15 @@ import library "extern_api";
|
|
|
// CHECK:STDOUT: %A.call: init %.1 = call %A.ref()
|
|
|
// CHECK:STDOUT: assign file.%a.var, %A.call
|
|
|
// CHECK:STDOUT: %B.ref: %B.type = name_ref B, imports.%import_ref.2 [template = constants.%B]
|
|
|
-// CHECK:STDOUT: %.loc73: i32 = int_literal 1 [template = constants.%.2]
|
|
|
-// CHECK:STDOUT: %B.call: init i32 = call %B.ref(%.loc73)
|
|
|
+// CHECK:STDOUT: %.loc72: i32 = int_literal 1 [template = constants.%.2]
|
|
|
+// CHECK:STDOUT: %B.call: init i32 = call %B.ref(%.loc72)
|
|
|
// CHECK:STDOUT: assign file.%b.var, %B.call
|
|
|
// CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%import_ref.3 [template = constants.%C]
|
|
|
-// CHECK:STDOUT: %.loc74_23: i32 = int_literal 1 [template = constants.%.2]
|
|
|
-// CHECK:STDOUT: %.loc74_25: %.4 = tuple_literal (%.loc74_23)
|
|
|
-// CHECK:STDOUT: %tuple: %.4 = tuple_value (%.loc74_23) [template = constants.%tuple]
|
|
|
-// CHECK:STDOUT: %.loc74_21: %.4 = converted %.loc74_25, %tuple [template = constants.%tuple]
|
|
|
-// CHECK:STDOUT: %C.call: init %.3 = call %C.ref(%.loc74_21)
|
|
|
+// CHECK:STDOUT: %.loc73_23: i32 = int_literal 1 [template = constants.%.2]
|
|
|
+// CHECK:STDOUT: %.loc73_25: %.4 = tuple_literal (%.loc73_23)
|
|
|
+// CHECK:STDOUT: %tuple: %.4 = tuple_value (%.loc73_23) [template = constants.%tuple]
|
|
|
+// CHECK:STDOUT: %.loc73_21: %.4 = converted %.loc73_25, %tuple [template = constants.%tuple]
|
|
|
+// CHECK:STDOUT: %C.call: init %.3 = call %C.ref(%.loc73_21)
|
|
|
// CHECK:STDOUT: assign file.%c.var, %C.call
|
|
|
// CHECK:STDOUT: %D.ref: %D.type = name_ref D, imports.%import_ref.4 [template = constants.%D]
|
|
|
// CHECK:STDOUT: %D.call: init %.1 = call %D.ref()
|
|
|
@@ -1235,195 +1173,6 @@ import library "extern_api";
|
|
|
// CHECK:STDOUT: return
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: --- decl_after_use.carbon
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: constants {
|
|
|
-// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
|
|
-// CHECK:STDOUT: %A.type: type = fn_type @A [template]
|
|
|
-// CHECK:STDOUT: %A: %A.type = struct_value () [template]
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: imports {
|
|
|
-// CHECK:STDOUT: %import_ref.1: %A.type = import_ref Main//extern_api, inst+3, loaded [template = constants.%A]
|
|
|
-// CHECK:STDOUT: %import_ref.2 = import_ref Main//extern_api, inst+21, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.3 = import_ref Main//extern_api, inst+41, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.4 = import_ref Main//extern_api, inst+44, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.5: <namespace> = import_ref Main//extern_api, inst+47, loaded
|
|
|
-// CHECK:STDOUT: %NS: <namespace> = namespace %import_ref.5, [template] {
|
|
|
-// CHECK:STDOUT: .E = %import_ref.6
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %import_ref.6 = import_ref Main//extern_api, inst+48, unloaded
|
|
|
-// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
|
|
|
-// CHECK:STDOUT: import Core//prelude
|
|
|
-// CHECK:STDOUT: import Core//prelude/operators
|
|
|
-// CHECK:STDOUT: import Core//prelude/types
|
|
|
-// CHECK:STDOUT: import Core//prelude/operators/arithmetic
|
|
|
-// CHECK:STDOUT: import Core//prelude/operators/bitwise
|
|
|
-// CHECK:STDOUT: import Core//prelude/operators/comparison
|
|
|
-// CHECK:STDOUT: import Core//prelude/types/bool
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: file {
|
|
|
-// CHECK:STDOUT: package: <namespace> = namespace [template] {
|
|
|
-// CHECK:STDOUT: .A = %A.decl
|
|
|
-// CHECK:STDOUT: .B = imports.%import_ref.2
|
|
|
-// CHECK:STDOUT: .C = imports.%import_ref.3
|
|
|
-// CHECK:STDOUT: .D = imports.%import_ref.4
|
|
|
-// CHECK:STDOUT: .NS = imports.%NS
|
|
|
-// CHECK:STDOUT: .Core = imports.%Core
|
|
|
-// CHECK:STDOUT: .a = %a
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %Core.import = import Core
|
|
|
-// CHECK:STDOUT: %default.import = import <invalid>
|
|
|
-// CHECK:STDOUT: %.loc6_9.1: %.1 = tuple_literal ()
|
|
|
-// CHECK:STDOUT: %.loc6_9.2: type = converted %.loc6_9.1, constants.%.1 [template = constants.%.1]
|
|
|
-// CHECK:STDOUT: %a.var: ref %.1 = var a
|
|
|
-// CHECK:STDOUT: %a: ref %.1 = bind_name a, %a.var
|
|
|
-// CHECK:STDOUT: %A.decl: %A.type = fn_decl @A [template = constants.%A] {}
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @A();
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @__global_init() {
|
|
|
-// CHECK:STDOUT: !entry:
|
|
|
-// CHECK:STDOUT: %A.ref: %A.type = name_ref A, imports.%import_ref.1 [template = constants.%A]
|
|
|
-// CHECK:STDOUT: %A.call: init %.1 = call %A.ref()
|
|
|
-// CHECK:STDOUT: assign file.%a.var, %A.call
|
|
|
-// CHECK:STDOUT: return
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: --- fail_redecl_mismatch_after_use.carbon
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: constants {
|
|
|
-// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
|
|
-// CHECK:STDOUT: %A.type: type = fn_type @A [template]
|
|
|
-// CHECK:STDOUT: %A: %A.type = struct_value () [template]
|
|
|
-// CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template]
|
|
|
-// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
|
|
-// CHECK:STDOUT: %.type: type = fn_type @.1 [template]
|
|
|
-// CHECK:STDOUT: %.2: %.type = struct_value () [template]
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: imports {
|
|
|
-// CHECK:STDOUT: %import_ref.1: %A.type = import_ref Main//extern_api, inst+3, loaded [template = constants.%A]
|
|
|
-// CHECK:STDOUT: %import_ref.2 = import_ref Main//extern_api, inst+21, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.3 = import_ref Main//extern_api, inst+41, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.4 = import_ref Main//extern_api, inst+44, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.5: <namespace> = import_ref Main//extern_api, inst+47, loaded
|
|
|
-// CHECK:STDOUT: %NS: <namespace> = namespace %import_ref.5, [template] {
|
|
|
-// CHECK:STDOUT: .E = %import_ref.6
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %import_ref.6 = import_ref Main//extern_api, inst+48, unloaded
|
|
|
-// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
|
|
|
-// CHECK:STDOUT: .Int32 = %import_ref.7
|
|
|
-// CHECK:STDOUT: import Core//prelude
|
|
|
-// CHECK:STDOUT: import Core//prelude/operators
|
|
|
-// CHECK:STDOUT: import Core//prelude/types
|
|
|
-// CHECK:STDOUT: import Core//prelude/operators/arithmetic
|
|
|
-// CHECK:STDOUT: import Core//prelude/operators/bitwise
|
|
|
-// CHECK:STDOUT: import Core//prelude/operators/comparison
|
|
|
-// CHECK:STDOUT: import Core//prelude/types/bool
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %import_ref.7: %Int32.type = import_ref Core//prelude/types, inst+4, loaded [template = constants.%Int32]
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: file {
|
|
|
-// CHECK:STDOUT: package: <namespace> = namespace [template] {
|
|
|
-// CHECK:STDOUT: .A = imports.%import_ref.1
|
|
|
-// CHECK:STDOUT: .B = imports.%import_ref.2
|
|
|
-// CHECK:STDOUT: .C = imports.%import_ref.3
|
|
|
-// CHECK:STDOUT: .D = imports.%import_ref.4
|
|
|
-// CHECK:STDOUT: .NS = imports.%NS
|
|
|
-// CHECK:STDOUT: .Core = imports.%Core
|
|
|
-// CHECK:STDOUT: .a = %a
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %Core.import = import Core
|
|
|
-// CHECK:STDOUT: %default.import = import <invalid>
|
|
|
-// CHECK:STDOUT: %.loc6_9.1: %.1 = tuple_literal ()
|
|
|
-// CHECK:STDOUT: %.loc6_9.2: type = converted %.loc6_9.1, constants.%.1 [template = constants.%.1]
|
|
|
-// CHECK:STDOUT: %a.var: ref %.1 = var a
|
|
|
-// CHECK:STDOUT: %a: ref %.1 = bind_name a, %a.var
|
|
|
-// CHECK:STDOUT: %.decl: %.type = fn_decl @.1 [template = constants.%.2] {
|
|
|
-// CHECK:STDOUT: %int.make_type_32: init type = call constants.%Int32() [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc18_11.1: type = value_of_initializer %int.make_type_32 [template = i32]
|
|
|
-// CHECK:STDOUT: %.loc18_11.2: type = converted %int.make_type_32, %.loc18_11.1 [template = i32]
|
|
|
-// CHECK:STDOUT: @.1.%return: ref i32 = var <return slot>
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: extern fn @A();
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @Int32() -> type = "int.make_type_32";
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @.1() -> i32;
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @__global_init() {
|
|
|
-// CHECK:STDOUT: !entry:
|
|
|
-// CHECK:STDOUT: %A.ref: %A.type = name_ref A, imports.%import_ref.1 [template = constants.%A]
|
|
|
-// CHECK:STDOUT: %A.call: init %.1 = call %A.ref()
|
|
|
-// CHECK:STDOUT: assign file.%a.var, %A.call
|
|
|
-// CHECK:STDOUT: return
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: --- todo_fail_extern_after_use.carbon
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: constants {
|
|
|
-// CHECK:STDOUT: %.1: type = tuple_type () [template]
|
|
|
-// CHECK:STDOUT: %A.type: type = fn_type @A [template]
|
|
|
-// CHECK:STDOUT: %A: %A.type = struct_value () [template]
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: imports {
|
|
|
-// CHECK:STDOUT: %import_ref.1: %A.type = import_ref Main//api, inst+3, loaded [template = constants.%A]
|
|
|
-// CHECK:STDOUT: %import_ref.2 = import_ref Main//api, inst+21, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.3 = import_ref Main//api, inst+41, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.4 = import_ref Main//api, inst+44, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.5: <namespace> = import_ref Main//api, inst+47, loaded
|
|
|
-// CHECK:STDOUT: %NS: <namespace> = namespace %import_ref.5, [template] {
|
|
|
-// CHECK:STDOUT: .E = %import_ref.6
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %import_ref.6 = import_ref Main//api, inst+48, unloaded
|
|
|
-// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
|
|
|
-// CHECK:STDOUT: import Core//prelude
|
|
|
-// CHECK:STDOUT: import Core//prelude/operators
|
|
|
-// CHECK:STDOUT: import Core//prelude/types
|
|
|
-// CHECK:STDOUT: import Core//prelude/operators/arithmetic
|
|
|
-// CHECK:STDOUT: import Core//prelude/operators/bitwise
|
|
|
-// CHECK:STDOUT: import Core//prelude/operators/comparison
|
|
|
-// CHECK:STDOUT: import Core//prelude/types/bool
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: file {
|
|
|
-// CHECK:STDOUT: package: <namespace> = namespace [template] {
|
|
|
-// CHECK:STDOUT: .A = %A.decl
|
|
|
-// CHECK:STDOUT: .B = imports.%import_ref.2
|
|
|
-// CHECK:STDOUT: .C = imports.%import_ref.3
|
|
|
-// CHECK:STDOUT: .D = imports.%import_ref.4
|
|
|
-// CHECK:STDOUT: .NS = imports.%NS
|
|
|
-// CHECK:STDOUT: .Core = imports.%Core
|
|
|
-// CHECK:STDOUT: .a = %a
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %Core.import = import Core
|
|
|
-// CHECK:STDOUT: %default.import = import <invalid>
|
|
|
-// CHECK:STDOUT: %.loc6_9.1: %.1 = tuple_literal ()
|
|
|
-// CHECK:STDOUT: %.loc6_9.2: type = converted %.loc6_9.1, constants.%.1 [template = constants.%.1]
|
|
|
-// CHECK:STDOUT: %a.var: ref %.1 = var a
|
|
|
-// CHECK:STDOUT: %a: ref %.1 = bind_name a, %a.var
|
|
|
-// CHECK:STDOUT: %A.decl: %A.type = fn_decl @A [template = constants.%A] {}
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: extern fn @A();
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: fn @__global_init() {
|
|
|
-// CHECK:STDOUT: !entry:
|
|
|
-// CHECK:STDOUT: %A.ref: %A.type = name_ref A, imports.%import_ref.1 [template = constants.%A]
|
|
|
-// CHECK:STDOUT: %A.call: init %.1 = call %A.ref()
|
|
|
-// CHECK:STDOUT: assign file.%a.var, %A.call
|
|
|
-// CHECK:STDOUT: return
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: --- unloaded.carbon
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: imports {
|
|
|
@@ -1496,44 +1245,3 @@ import library "extern_api";
|
|
|
// CHECK:STDOUT: %default.import = import <invalid>
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: --- fail_todo_loaded_merge.carbon
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: imports {
|
|
|
-// CHECK:STDOUT: %import_ref.1 = import_ref Main//api, inst+3, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.2 = import_ref Main//api, inst+21, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.3 = import_ref Main//api, inst+41, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.4 = import_ref Main//api, inst+44, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.5: <namespace> = import_ref Main//api, inst+47, loaded
|
|
|
-// CHECK:STDOUT: %NS: <namespace> = namespace %import_ref.5, [template] {
|
|
|
-// CHECK:STDOUT: .E = %import_ref.6
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %import_ref.6 = import_ref Main//api, inst+48, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.7 = import_ref Main//extern_api, inst+3, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.8 = import_ref Main//extern_api, inst+21, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.9 = import_ref Main//extern_api, inst+41, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.10 = import_ref Main//extern_api, inst+44, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.11 = import_ref Main//extern_api, inst+48, unloaded
|
|
|
-// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
|
|
|
-// CHECK:STDOUT: import Core//prelude
|
|
|
-// CHECK:STDOUT: import Core//prelude/operators
|
|
|
-// CHECK:STDOUT: import Core//prelude/types
|
|
|
-// CHECK:STDOUT: import Core//prelude/operators/arithmetic
|
|
|
-// CHECK:STDOUT: import Core//prelude/operators/bitwise
|
|
|
-// CHECK:STDOUT: import Core//prelude/operators/comparison
|
|
|
-// CHECK:STDOUT: import Core//prelude/types/bool
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: file {
|
|
|
-// CHECK:STDOUT: package: <namespace> = namespace [template] {
|
|
|
-// CHECK:STDOUT: .A = imports.%import_ref.1
|
|
|
-// CHECK:STDOUT: .B = imports.%import_ref.2
|
|
|
-// CHECK:STDOUT: .C = imports.%import_ref.3
|
|
|
-// CHECK:STDOUT: .D = imports.%import_ref.4
|
|
|
-// CHECK:STDOUT: .NS = imports.%NS
|
|
|
-// CHECK:STDOUT: .Core = imports.%Core
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT: %Core.import = import Core
|
|
|
-// CHECK:STDOUT: %default.import = import <invalid>
|
|
|
-// CHECK:STDOUT: }
|
|
|
-// CHECK:STDOUT:
|