Index: SingleSource/Regression/C++/custom_section_members.cpp =================================================================== --- /dev/null +++ SingleSource/Regression/C++/custom_section_members.cpp @@ -0,0 +1,14 @@ +// Test we can compile a simple class with members in a custom section. + +struct A { + static int foo() __attribute__((section("section"))); + static void bar() __attribute__((section("section"))); +}; + +int A::foo() { return 0; } +void A::bar() {} + +int main() { + return A::foo(); +} + Index: SingleSource/Regression/C++/custom_section_members.reference_output =================================================================== --- /dev/null +++ SingleSource/Regression/C++/custom_section_members.reference_output @@ -0,0 +1 @@ +exit 0