gdbserver_tests: filter out new Missing rpms message
[valgrind.git] / dhat / tests / ad-hoc.c
blob51244dc37f661a3a7dd9dd63c604ddf4fe25969d
1 #include "dhat/dhat.h"
2 #include <stdlib.h>
3 void g(void) {
4 DHAT_AD_HOC_EVENT(30);
7 void f(void) {
8 g();
9 DHAT_AD_HOC_EVENT(20);
10 g();
13 int main(void) {
14 f();
15 DHAT_AD_HOC_EVENT(10);
16 f();
18 // At one point malloc was broken with --mode=ad-hoc(!), and Valgrind was
19 // printing messages like "VG_USERREQ__CLIENT_CALL1: func=0x0" when malloc
20 // was called. So check that it's basically working...
21 char* p = malloc(100);
22 p = realloc(p, 200);
23 free(p);
25 return 0;