Closed arichardson closed 6 years ago
Better test case:
// RUN: %cheri_purecap_cc1 -emit-obj -target-cpu mips4 -cheri-size 128 -Os -std=c++1z -fdeprecated-macro -fvisibility hidden -fvisibility-inlines-hidden -pthread -fcolor-diagnostics -vectorize-loops -vectorize-slp -isystem /local/scratch/alr48/cheri/output/sdk/sysroot128/usr/include/c++/v1/ -isystem /local/scratch/alr48/cheri/output/sdk/sysroot128/usr/include -o - %s
int a(int);
int *q_SSL_get_ciphers(const struct ssl_st *);
void b() {
int *c = q_SSL_get_ciphers(0);
for (; ((int (*)(int *))a)(c);)
;
}
Reduced test case:
Full reproducer: https://gist.github.com/arichardson/09d4569f157e3274ef5c1ccf808f97b0