Boaz Brickner
2cb0df42e0
Add C++ interop inline function tests (#5406)
This shows that `inline` is ignored and the function definition is not
generated.
Demo:
```c++
// hello_world.h
inline void hello_world() {}
```
```carbon
// main.carbon
library "Main";
import Cpp library "hello_world.h";
fn Run() -> i32 {
Cpp.hello_world();
return 0;
}
```
```shell
$ bazel-bin/toolchain/carbon compile main.carbon
$ bazel-bin/toolchain/carbon link main.o --output=demo
ld.lld: error: undefined symbol: hello_world()
>>> referenced by main.carbon:8
>>> main.o:(main)
error: linker command failed with exit code 1 (use -v to see invocation)
```
Part of #5405.
2025-05-09 16:33:16 +00:00
..
2025-05-01 20:24:15 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-02 17:01:10 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 20:24:15 +00:00
2025-05-01 20:24:15 +00:00
2025-05-01 00:08:43 +00:00
2025-05-07 22:13:33 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-08 18:41:36 +00:00
2025-05-07 22:27:29 +00:00
2025-05-01 20:24:15 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 20:24:15 +00:00
2025-05-08 16:46:45 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 20:24:15 +00:00
2025-05-09 16:33:16 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 20:24:15 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-04-30 22:32:41 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 20:24:15 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 00:08:43 +00:00
2025-05-01 20:24:15 +00:00
2025-05-01 00:08:43 +00:00