Last active
February 16, 2017 22:43
-
-
Save Leandros/51080fb438fa6c93a74cae9a2373a382 to your computer and use it in GitHub Desktop.
-frewrite-includes bug in clang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -x | |
LLVM_BIN=/usr/bin | |
cat <<EOF > test.c | |
#include <stdatomic.h> | |
int main(void) | |
{ | |
volatile atomic_long i = 0; | |
return 0; | |
} | |
EOF | |
$LLVM_BIN/clang test.c -std=c11 -E -frewrite-includes > test.e.c | |
$LLVM_BIN/clang test.e.c -std=c11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment