summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/test/asan/TestCases/zero_page_pc.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler-rt/test/asan/TestCases/zero_page_pc.cc b/compiler-rt/test/asan/TestCases/zero_page_pc.cc
index f8bf1d92650..613eea23d53 100644
--- a/compiler-rt/test/asan/TestCases/zero_page_pc.cc
+++ b/compiler-rt/test/asan/TestCases/zero_page_pc.cc
@@ -8,6 +8,8 @@ typedef void void_f();
int main() {
void_f *func = (void_f *)0x4;
func();
- // CHECK: {{AddressSanitizer: SEGV.*(pc.*0004)}}
+ // x86 reports the SEGV with both address=4 and pc=4.
+ // PowerPC64 reports it with address=4 but pc still in main().
+ // CHECK: {{AddressSanitizer: SEGV.*(address|pc) 0x0*4}}
return 0;
}
OpenPOWER on IntegriCloud