19 lines
447 B
C
19 lines
447 B
C
|
|
#include "akerror.h"
|
||
|
|
#include "err_ignore_multitu.h"
|
||
|
|
#include <stdio.h>
|
||
|
|
|
||
|
|
int main(void)
|
||
|
|
{
|
||
|
|
akerr_ErrorContext *main_address = &akerr_last_ignored;
|
||
|
|
akerr_ErrorContext *helper_address = akerr_multitu_snapshot_address();
|
||
|
|
|
||
|
|
if ( main_address != helper_address ) {
|
||
|
|
fprintf(stderr,
|
||
|
|
"CHECK FAILED: ignored-error storage differs between translation units\n");
|
||
|
|
return 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
fprintf(stderr, "err_ignore_multitu ok\n");
|
||
|
|
return 0;
|
||
|
|
}
|