1 // Copyright (C) 1999 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 5 Sep 1999 <nathan@acm.org>
3 
4 // C++ does not decay lvalues into rvalues until as late as possible. This
5 // means things like the rhs of a comma operator mustn't decay. This will make
6 // a difference if it is an array or function.
7 
8 extern void abort();
9 
main(int argc,char ** argv)10 int main (int argc, char **argv)
11 {
12   int ary[10];
13   int ary1[10];
14 
15   if (sizeof (0,ary) != sizeof (ary))
16     abort ();
17   if (sizeof (argc ? ary : ary1) != sizeof (ary))
18     abort ();
19   return 0;
20 }
21