# Exercising Bison on conflicts. -*- Autotest -*-
-# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
[[
%{
#include <stdio.h>
-
-#if STDC_HEADERS
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#define YYERROR_VERBOSE 1
static void
AT_CLEANUP
-## ---------------------------- ##
-## %default-prec without %prec ##
-## ---------------------------- ##
+## ------------------------------- ##
+## %no-default-prec without %prec ##
+## ------------------------------- ##
-AT_SETUP([%default-prec without %prec])
+AT_SETUP([%no-default-prec without %prec])
AT_DATA([[input.y]],
[[%left '+'
%%
-%default-prec 0;
+%no-default-prec;
e: e '+' e
| e '*' e
AT_CLEANUP
-## ------------------------- ##
-## %default-prec with %prec ##
-## ------------------------- ##
+## ---------------------------- ##
+## %no-default-prec with %prec ##
+## ---------------------------- ##
-AT_SETUP([%default-prec with %prec])
+AT_SETUP([%no-default-prec with %prec])
AT_DATA([[input.y]],
[[%left '+'
%%
-%default-prec 0;
+%no-default-prec;
e: e '+' e %prec '+'
| e '*' e %prec '*'
## ---------------- ##
-## %default-prec 1 ##
+## %default-prec ##
## ---------------- ##
-AT_SETUP([%default-prec 1])
+AT_SETUP([%default-prec])
AT_DATA([[input.y]],
[[%left '+'
%%
-%default-prec 1;
+%default-prec;
e: e '+' e
| e '*' e