diff --git a/conans/test/functional/toolchains/meson/test_meson_native_attribute.py b/conans/test/functional/toolchains/meson/test_meson_native_attribute.py index a87615c6c83..18538ce1f7f 100644 --- a/conans/test/functional/toolchains/meson/test_meson_native_attribute.py +++ b/conans/test/functional/toolchains/meson/test_meson_native_attribute.py @@ -63,12 +63,7 @@ def build(self): # Even cross-building the library, we want to create an executable using only the native context executable('mygen', 'mygen.cpp', native: true) """) - my_gen_cpp = textwrap.dedent(""" - #include - int main() { - std::cout << "Hello World!"; - return 0; - } + my_gen_cpp = gen_function_cpp(name="main") """) hello_h = gen_function_h(name="hello") hello_cpp = gen_function_cpp(name="hello")