Skip to content

Commit

Permalink
Merge pull request #405 from NeroBurner/remove_register_keyword
Browse files Browse the repository at this point in the history
remove register keyword from unittest
  • Loading branch information
sergiud authored Dec 13, 2018
2 parents 702c533 + e0cabc5 commit d328081
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/symbolize_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d328081

Please sign in to comment.