mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Fix issues with clang and gcc builds
This commit is contained in:
parent
48ae07e96c
commit
30fb77e4c6
@ -229,8 +229,10 @@ function(add_gsl_asm_test name)
|
|||||||
else()
|
else()
|
||||||
target_compile_options(${name}_asm_options INTERFACE
|
target_compile_options(${name}_asm_options INTERFACE
|
||||||
-S
|
-S
|
||||||
-o ${ASM_LOCATION}\\${name}.s
|
|
||||||
)
|
)
|
||||||
|
set_target_properties(${name}_asm PROPERTIES PREFIX "")
|
||||||
|
set_target_properties(${name}_asm PROPERTIES OUTPUT_NAME "${ASM_LOCATION}/${name}")
|
||||||
|
set_target_properties(${name}_asm PROPERTIES SUFFIX ".s")
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
|
||||||
target_link_libraries(${name}_asm
|
target_link_libraries(${name}_asm
|
||||||
|
@ -37,20 +37,6 @@ struct fail_fast;
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace gsl;
|
using namespace gsl;
|
||||||
|
|
||||||
namespace
|
|
||||||
{
|
|
||||||
struct BaseClass
|
|
||||||
{
|
|
||||||
};
|
|
||||||
struct DerivedClass : BaseClass
|
|
||||||
{
|
|
||||||
};
|
|
||||||
struct AddressOverloaded
|
|
||||||
{
|
|
||||||
AddressOverloaded operator&() const { return {}; }
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
GSL_SUPPRESS(con.4) // NO-FORMAT: attribute
|
GSL_SUPPRESS(con.4) // NO-FORMAT: attribute
|
||||||
bool foo()
|
bool foo()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user