Add a negative test for bitwise not used in a larger expression.
[piglit/hramrach.git] / tests / bugs / fdo23489.c
blobb4420046b1c44f4f511cec572f4d635914e2031b
1 /*
2 * Test case from fdo bug #23489
3 * http://bugs.freedesktop.org/show_bug.cgi?id=23489
4 */
6 #include "piglit-util.h"
8 static int Automatic = 0;
10 static void display(void)
12 int i;
14 for (i = 0; i < 100; i++) {
15 glBegin(GL_LINES);
16 glEnd();
18 glFlush();
20 if (Automatic) {
21 piglit_report_result(PIGLIT_SUCCESS);
25 static void init(void)
27 glClearColor(0.0, 0.0, 0.0, 0.0);
28 glMatrixMode(GL_PROJECTION);
29 glLoadIdentity();
30 glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0);
33 int main(int argc, char** argv)
35 glutInit(&argc, argv);
36 if (argc == 2 && !strcmp(argv[1], "-auto"))
37 Automatic = 1;
38 glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
39 glutInitWindowSize(250, 250);
40 glutInitWindowPosition(100, 100);
41 glutCreateWindow("fdo23489");
42 glutKeyboardFunc(piglit_escape_exit_key);
43 init();
44 glutDisplayFunc(display);
45 glutMainLoop();
46 return 0;