Changeset 8b59916 in rtems


Ignore:
Timestamp:
Dec 21, 2018, 12:31:32 PM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
11f3b9a
Parents:
c37807e9
git-author:
Sebastian Huber <sebastian.huber@…> (12/21/18 12:31:32)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/21/18 12:32:12)
Message:

spcxx01: Add test case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/spcxx01/init.cc

    rc37807e9 r8b59916  
    3838const char rtems_test_name[] = "SPCXX 1";
    3939
     40struct alignas(256) S {
     41  int i;
     42};
     43
    4044extern "C" void Init(rtems_task_argument arg)
    4145{
     
    4953  rtems_test_assert(reinterpret_cast<uintptr_t>(i) % 256 == 0);
    5054  ::delete(i);
     55
     56  S *s = new S;
     57  RTEMS_OBFUSCATE_VARIABLE(s);
     58  rtems_test_assert(s != nullptr);
     59  rtems_test_assert(reinterpret_cast<uintptr_t>(s) % 256 == 0);
     60  delete s;
    5161
    5262  TEST_END();
Note: See TracChangeset for help on using the changeset viewer.