FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / cvt18.C
blob79ea67985d54a3f1ad625f2f4736b6e21d7c4f6e
1 // Build don't link: 
2 // GROUPS passed conversions
3 // cvt file
4 // Message-Id: <9307090042.AA28565@uluru.Stanford.EDU>
5 // From: interran@uluru.stanford.edu (John Interrante)
6 // Subject: gcc 2.4.5 on sparc-sun-sunos4.1.2: automatic conversion functions
7 // Date: Thu, 8 Jul 93 17:42:12 PDT
9 class Token {
10 public:
11     operator const void*() const;
12     int operator !=(int code) const;
13 private:
14     int code_;
17 extern Token next_token();
19 void foo(Token token) {
20     if (token && token != '{') {}
22     const int inside_body = 1;
23     if (inside_body && (token = next_token())) {}