Merge pull request #405 from NeroBurner/remove_register_keyword

remove register keyword from unittest
This commit is contained in:
Sergiu Deitsch 2018-12-13 08:29:32 +01:00 committed by GitHub
commit d328081115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -311,7 +311,7 @@ TEST(Symbolize, SymbolizeWithDemanglingStackConsumption) {
// x86 specific tests. Uses some inline assembler.
extern "C" {
inline void* always_inline inline_func() {
register void *pc = NULL;
void *pc = NULL;
#ifdef TEST_X86_32_AND_64
__asm__ __volatile__("call 1f; 1: pop %0" : "=r"(pc));
#endif
@ -320,7 +320,7 @@ inline void* always_inline inline_func() {
void* ATTRIBUTE_NOINLINE non_inline_func();
void* ATTRIBUTE_NOINLINE non_inline_func() {
register void *pc = NULL;
void *pc = NULL;
#ifdef TEST_X86_32_AND_64
__asm__ __volatile__("call 1f; 1: pop %0" : "=r"(pc));
#endif