     
     Array x(4);
     Array y(4);
-    View view_x(x);
-    View view_y(y);
 
     x[0] =  7.0f;   y[0] =  0.0f; 
     x[1] =  5.0f;   y[1] = -2.0f;

    typedef typename cusp::array1d<float, MemorySpace>::view View;

    Array x(6);
    View view_x(x);

    x[0] =  7.0f;
    x[1] =  5.0f;


    ASSERT_EQUAL(cusp::blas::nrm1(x), 20.0f);
    
    ASSERT_EQUAL(cusp::blas::nrm1(View(x)), 20.0f);
}
DECLARE_HOST_DEVICE_UNITTEST(TestNrm1);

