Home | History | Annotate | Download | only in Sema
      1 // RUN: %clang_cc1 %s -ast-print -fms-extensions | FileCheck %s
      2 
      3 // CHECK: int x __attribute__((aligned(4)));
      4 int x __attribute__((aligned(4)));
      5 
      6 // FIXME: Print this at a valid location for a __declspec attr.
      7 // CHECK: int y __declspec(align(4));
      8 __declspec(align(4)) int y;
      9 
     10 // CHECK: void foo() __attribute__((const));
     11 void foo() __attribute__((const));
     12 
     13 // CHECK: void bar() __attribute__((__const));
     14 void bar() __attribute__((__const));
     15 
     16 // FIXME: Print these at a valid location for these attributes.
     17 // CHECK: int *p32 __ptr32;
     18 int * __ptr32 p32;
     19 
     20 // CHECK: int *p64 __ptr64;
     21 int * __ptr64 p64;
     22