Skip to content

Instantly share code, notes, and snippets.

@cmiles74
Created September 14, 2017 16:34
Show Gist options
  • Save cmiles74/85722ed630d31fcef19045cf1e0f90bc to your computer and use it in GitHub Desktop.
Save cmiles74/85722ed630d31fcef19045cf1e0f90bc to your computer and use it in GitHub Desktop.
Align Test 2
[cmiles@atari test]$ g++ -Wall -std=gnu++11 -fwrapv -O2 -o align align.cpp
align.cpp: In function ‘void func()’:
align.cpp:7:36: warning: requested alignment 256 is larger than 8 [-Wattributes]
alignas(256) unsigned char toot[7];
^
[cmiles@atari test]$ ./align
000000007efc274c
[cmiles@atari test]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment