1 /** 2 * $Id: test19.c,v 1.3 2001/05/06 22:14:52 rwscott Exp $ 3 * 4 * Check whether the warning convenience functions do work, 5 * at least w/o segfaulting ... 6 * 7 **/ 8 9 #include <stdlib.h> 10 #include <Xm/XmP.h> 11 main()12int main() { 13 14 char text[]="simple"; 15 char func[]="_XmWarning()"; 16 int i=1; 17 18 #if XmVERSION > 1 19 #if XmREVISION > 0 20 _XmWarning(NULL, "This is a simple test for _XmWarning (1.x)\n"); 21 #else 22 _XmWarning(NULL, "This is a %s test (%i) for %s (2.x)\n", 23 text, i, func); 24 #endif 25 #else 26 _XmWarning(NULL, "This is a simple test for _XmWarning (1.x)\n"); 27 #endif 28 exit(0); 29 } 30