[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / warn-unused-local-typedef-x86asm.cpp
blobd7792c0e11eb808ec1b0be1d087a46f798b9295b
1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -std=c++11 -Wunused-local-typedef -verify -fasm-blocks %s
3 // expected-no-diagnostics
4 void use_in_asm() {
5 typedef struct {
6 int a;
7 int b;
8 } A;
9 __asm mov eax, [eax].A.b
11 using Alias = struct {
12 int a;
13 int b;
15 __asm mov eax, [eax].Alias.b