language compliance test

Discussion in 'C++' started by Fraser Ross, Jun 27, 2003.

  1. Fraser Ross

    Fraser Ross Guest

    Does this compile with any compilers? I am looking for criticism of the
    code.

    enum dummy_name { VALUE=100 } const value=VALUE;

    In a different translation unit:

    extern enum dummy_name const value;

    Also does this syntax compile?:
    enum const dummy_name { VALUE=100 } value=VALUE;


    Fraser.
    Fraser Ross, Jun 27, 2003
    #1
    1. Advertising

  2. Fraser Ross

    Fraser Ross Guest


    > Does this compile with any compilers? I am looking for criticism of the
    > code.


    Oops. Missed the word NOT.

    Fraser.
    Fraser Ross, Jun 27, 2003
    #2
    1. Advertising

  3. John Harrison, Jun 28, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. cp

    IEEE 1076.6 compliance

    cp, Aug 16, 2004, in forum: VHDL
    Replies:
    4
    Views:
    1,224
    Eric Delage
    Aug 20, 2004
  2. rhat
    Replies:
    103
    Views:
    1,935
    =?Utf-8?B?TG9nYW4gR3JlZW5sZWU=?=
    Jun 16, 2005
  3. JavaEnquirer

    Eclipse compiler compliance

    JavaEnquirer, May 24, 2005, in forum: Java
    Replies:
    2
    Views:
    6,943
    Dale King
    May 31, 2005
  4. DJ Franke
    Replies:
    3
    Views:
    310
    =?iso-8859-1?Q?Ali_=C7ehreli?=
    Sep 30, 2005
  5. Skybuck Flying

    Call oddities: &Test() vs &Test vs Test

    Skybuck Flying, Oct 4, 2009, in forum: C Programming
    Replies:
    1
    Views:
    678
    Skybuck Flying
    Oct 4, 2009
Loading...

Share This Page