~ubuntu-branches/ubuntu/quantal/gnutls26/quantal-security

« back to all changes in this revision

Viewing changes to lib/gl/tests/test-stdbool.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Test of <stdbool.h> substitute.
2
 
   Copyright (C) 2002-2007 Free Software Foundation, Inc.
 
2
   Copyright (C) 2002-2007, 2009-2010 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
46
46
char a[true == 1 ? 1 : -1];
47
47
char b[false == 0 ? 1 : -1];
48
48
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
49
 
#if 0 /* Cannot be guaranteed with gnulib's <stdbool.h>.  */
 
49
#if 0 /* Cannot be guaranteed with gnulib's <stdbool.h>, at least,
 
50
not for all compilers.  */
50
51
char d[(bool) 0.5 == true ? 1 : -1];
51
52
bool e = &s;
52
 
#endif
53
53
char f[(_Bool) 0.0 == false ? 1 : -1];
 
54
#endif
54
55
char g[true];
55
56
char h[sizeof (_Bool)];
56
57
#if 0 /* See above.  */