// $Id: Compiler_Features_29_Test.cpp 97494 2013-12-31 10:11:05Z johnnyw $

/**
 * This program checks if the compiler doesn't have a certain bug
 * that we encountered when testing C++11 features
 */

#include "test_config.h"

#if defined (ACE_HAS_CPP11)

#include <cstdint>

class A
{
public:
  static constexpr char const* adapter_name = "A";
  static constexpr float pi = 3.14150;
};

int
run_main (int, ACE_TCHAR *[])
{
  ACE_START_TEST (ACE_TEXT("Compiler_Features_29_Test"));

  ACE_DEBUG ((LM_DEBUG, "Variable %C\n", A::adapter_name));

  ACE_END_TEST;

  return 0;
}

#else
int
run_main (int, ACE_TCHAR *[])
{
  ACE_START_TEST (ACE_TEXT("Compiler_Features_29_Test"));

  ACE_DEBUG ((LM_INFO,
              ACE_TEXT ("No C++11 support enabled\n")));

  ACE_END_TEST;
  return 0;
}

#endif
