Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: test/Parser/no-gnu-inline-asm.c

Issue 1430233002: Cherry-pick upstream r237073 (Closed) Base URL: https://chromium.googlesource.com/a/native_client/pnacl-clang.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/Parse/Parser.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // RUN: %clang_cc1 %s -triple i686-apple-darwin -verify -fsyntax-only -fno-gnu-i nline-asm 1 // RUN: %clang_cc1 %s -triple i686-apple-darwin -verify -fsyntax-only -fno-gnu-i nline-asm
2 2
3 asm ("INST r1, 0"); // expected-error {{GNU-style inline assembly is disabled}}
4
5 void foo() __asm("__foo_func"); // AsmLabel is OK
6 int foo1 asm("bar1") = 0; // OK
7
8 asm(" "); // Whitespace is OK
9
3 void f (void) { 10 void f (void) {
4 long long foo = 0, bar; 11 long long foo = 0, bar;
5 asm volatile("INST %0, %1" : "=r"(foo) : "r"(bar)); // expected-error {{GNU-st yle inline assembly is disabled}} 12 asm volatile("INST %0, %1" : "=r"(foo) : "r"(bar)); // expected-error {{GNU-st yle inline assembly is disabled}}
13 asm (""); // Empty is OK
6 return; 14 return;
7 } 15 }
OLDNEW
« no previous file with comments | « lib/Parse/Parser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698