Files
swift-mirror/test/Interop/Cxx/stdlib/Inputs/no-cxx-stdlib.h
Egor Zhdan 9472c4ca08 [cxx-interop] Avoid "libstdc++ not found" warning when -nostdinc++ is passed
When explicitly asked not to load the C++ standard library, Swift should not emit warnings for missing libstdc++.

This fixes a compiler warning when building the Cxx module on Linux.
2024-12-05 17:51:30 +00:00

6 lines
126 B
C

// This file intentionally does not import anything from the C++ stdlib.
inline int my_sum(int a, int b) {
return a + b;
}